summaryrefslogtreecommitdiff
path: root/lisp/pcmpl-gnu.el
diff options
context:
space:
mode:
authorGregory Heytings <ghe@sdf.org>2020-08-21 12:44:52 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-21 12:44:52 +0200
commit44f6a2bba28a0b341a082a8167b3f9d2bd894340 (patch)
treea7afbfb9b06f399545a983f499c49995086042aa /lisp/pcmpl-gnu.el
parent178feeec4609e021ae9aa09c673ae19d86529228 (diff)
downloademacs-44f6a2bba28a0b341a082a8167b3f9d2bd894340.tar.gz
Tweak completion of Makefile targets
* lisp/pcmpl-gnu.el (pcmpl-gnu-make-targets): Require that target names not be preceded by a TAG character (bug#42411). Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/pcmpl-gnu.el')
-rw-r--r--lisp/pcmpl-gnu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el
index 098aa3d5fe1..d7c5b381d29 100644
--- a/lisp/pcmpl-gnu.el
+++ b/lisp/pcmpl-gnu.el
@@ -118,7 +118,7 @@
Return the new list."
(goto-char (point-min))
(while (re-search-forward
- "^\\s-*\\([^\n#%.$][^:=\n]*\\)\\s-*:[^=]" nil t)
+ "^\\([^\t\n#%.$][^:=\n]*\\)\\s-*:[^=]" nil t)
(setq targets (nconc (split-string (match-string-no-properties 1))
targets)))
targets)