mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
Further fixups in minibuffer-default--in-prompt-regexps
* lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Really allow shortening the default prompt format to [foo] (if requested) (bug#12443).
This commit is contained in:
parent
b40a7056e5
commit
7cc1614338
@ -44,12 +44,12 @@
|
||||
(concat
|
||||
(regexp-quote (substring minibuffer-default-prompt-format
|
||||
0 (match-beginning 0)))
|
||||
".*"
|
||||
"\\(.*?\\)"
|
||||
(regexp-quote (substring minibuffer-default-prompt-format
|
||||
(match-end 0))))
|
||||
(regexp-quote minibuffer-default-prompt-format))
|
||||
"\\): ")
|
||||
1)
|
||||
1 (and minibuffer-eldef-shorten-default " [\\2]"))
|
||||
`(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'"
|
||||
1 ,(if minibuffer-eldef-shorten-default " [\\2]"))
|
||||
("([^(]+?\\(, default\\(?: is\\)? \\(.*\\)\\)):? \\'" 1)
|
||||
|
Loading…
Reference in New Issue
Block a user