From 2862f6b2bf92c9469132283fd9d2abb72c1ae45e Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 11 Sep 2020 14:52:25 +0200 Subject: [PATCH] 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). --- lisp/minibuf-eldef.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]")) -- 2.39.5