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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue