summaryrefslogtreecommitdiff
path: root/lisp/minibuf-eldef.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-11 14:52:25 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-11 14:52:25 +0200
commit2862f6b2bf92c9469132283fd9d2abb72c1ae45e (patch)
treee74ec0ff8753288d808aa5cfd1a8d7125982a29e /lisp/minibuf-eldef.el
parent8d9133c6027512738f313d3342b7b6e9dc68ddd0 (diff)
downloademacs-2862f6b2bf92c9469132283fd9d2abb72c1ae45e.tar.gz
Fix up eldef shortening of the minibuffer
* lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Don't include the ": " bit in the portion to be replaced (bug#12443).
Diffstat (limited to 'lisp/minibuf-eldef.el')
-rw-r--r--lisp/minibuf-eldef.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/minibuf-eldef.el b/lisp/minibuf-eldef.el
index a32d21abb30..6cd858093cd 100644
--- a/lisp/minibuf-eldef.el
+++ b/lisp/minibuf-eldef.el
@@ -48,7 +48,7 @@
(regexp-quote (substring minibuffer-default-prompt-format
(match-end 0))))
(regexp-quote minibuffer-default-prompt-format))
- ": *\\)")
+ "\\): ")
1)
`(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'"
1 ,(if minibuffer-eldef-shorten-default " [\\2]"))