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
This commit is contained in:
Gregory Heytings 2020-08-21 12:44:52 +02:00 committed by Lars Ingebrigtsen
parent 178feeec46
commit 44f6a2bba2

View file

@ -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)