]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak completion of Makefile targets
authorGregory Heytings <ghe@sdf.org>
Fri, 21 Aug 2020 10:44:52 +0000 (12:44 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Aug 2020 10:44:52 +0000 (12:44 +0200)
* 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

index 098aa3d5fe1598a1f86c2061b7d00317b1fcfed1..d7c5b381d29e95be08bd80ce8419dfe542141374 100644 (file)
 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)