From 44f6a2bba28a0b341a082a8167b3f9d2bd894340 Mon Sep 17 00:00:00 2001 From: Gregory Heytings Date: Fri, 21 Aug 2020 12:44:52 +0200 Subject: [PATCH] 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 --- lisp/pcmpl-gnu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2