projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f7c9c
)
* lisp/progmodes/project.el: Filter out empty strings from history (bug#58447)
author
Juri Linkov
<juri@linkov.net>
Mon, 19 Dec 2022 17:54:08 +0000
(19:54 +0200)
committer
Juri Linkov
<juri@linkov.net>
Mon, 19 Dec 2022 17:54:08 +0000
(19:54 +0200)
(project--read-file-cpd-relative): Do not include empty strings (when
prefix has the same length as the string).
lisp/progmodes/project.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/project.el
b/lisp/progmodes/project.el
index 559da6dd64902fe13e0fd5bb6042dea5dbd21524..605636d93e36439551d5763d902f6da74812c23f 100644
(file)
--- a/
lisp/progmodes/project.el
+++ b/
lisp/progmodes/project.el
@@
-1045,6
+1045,7
@@
by the user at will."
(mapcan
(lambda (s)
(and (string-prefix-p abbr-cpd s)
+ (not (eq (length abbr-cpd) (length s)))
(list (substring s (length abbr-cpd)))))
(symbol-value hist))))
(project--completing-read-strict prompt