From: Dmitry Gutov Date: Sun, 6 Sep 2015 22:38:10 +0000 (+0300) Subject: Allow even one non-regular character before the implicit tag name X-Git-Tag: emacs-25.0.90~1225^2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=770db45d6769134aa3a853e2ff38089a1e8a3327;p=emacs.git Allow even one non-regular character before the implicit tag name * lisp/progmodes/etags.el (etags-tags-completion-table): Allow even one non-regular character before the implicit tag name. Reported at http://emacs.stackexchange.com/questions/15269/. --- diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index d38a7cd7706..83ee2a484f7 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el @@ -1268,7 +1268,7 @@ buffer-local values of tags table format variables." ;; \6 is the line to start searching at; ;; \7 is the char to start searching at. (while (re-search-forward - "^\\(\\([^\177]+[^-a-zA-Z0-9_+*$:\177]+\\)?\ + "^\\(\\([^\177]*[^-a-zA-Z0-9_+*$:\177]+\\)?\ \\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\ \\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n" nil t)