1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

* minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle

"foo (bar, default: xxx): " prompts.
This commit is contained in:
Christopher Schmidt 2013-02-10 15:18:48 +01:00
parent 1e8a045abd
commit 2f108463fa
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-02-10 Christopher Schmidt <christopher@ch.ristopher.com>
* minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
"foo (bar, default: xxx): " prompts.
2013-02-10 Chong Yidong <cyd@gnu.org>
* files.el (basic-save-buffer-1): Do not set

View file

@ -38,6 +38,7 @@
(defun minibuffer-default--in-prompt-regexps ()
`(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'"
1 ,(if minibuffer-eldef-shorten-default " [\\2]"))
("([^(]+?\\(, default\\(?: is\\)? \\(.*\\)\\)):? \\'" 1)
("\\( \\[.*\\]\\):? *\\'" 1)))
(defcustom minibuffer-eldef-shorten-default nil