From 770db45d6769134aa3a853e2ff38089a1e8a3327 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 7 Sep 2015 01:38:10 +0300 Subject: [PATCH] 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/. --- lisp/progmodes/etags.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2