]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow even one non-regular character before the implicit tag name
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 6 Sep 2015 22:38:10 +0000 (01:38 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 6 Sep 2015 22:39:09 +0000 (01:39 +0300)
* 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

index d38a7cd7706e56bfa133144b5b78e605c191fda0..83ee2a484f773d49a798f181d87ed0f3bb4c8bc6 100644 (file)
@@ -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)