From: Gregory Heytings Date: Fri, 21 Aug 2020 10:44:52 +0000 (+0200) Subject: Tweak completion of Makefile targets X-Git-Tag: emacs-28.0.90~6481 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44f6a2bba28a0b341a082a8167b3f9d2bd894340;p=emacs.git 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 --- 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)