[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0700eb1: Make sure there's no explicit tag name
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] master 0700eb1: Make sure there's no explicit tag name |
Date: |
Sun, 31 May 2015 00:56:22 +0000 |
branch: master
commit 0700eb152da4c57419a391161107b48d81abdeb2
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Make sure there's no explicit tag name
* lisp/progmodes/etags.el (tag-implicit-name-match-p): Make sure
there's no explicit tag name (bug#20629).
---
lisp/progmodes/etags.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 329d899..d03032d 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1628,7 +1628,8 @@ Point should be just after a string that matches TAG."
;; Look at the comment of the make_tag function in lib-src/etags.c for
;; a textual description of the four rules.
(and (string-match "^[^ \t()=,;]+$" tag) ;rule #1
- (looking-at "[ \t()=,;]?\177") ;rules #2 and #4
+ ;; Rules #2 and #4, and a check that there's no explicit name.
+ (looking-at "[ \t()=,;]?\177\\(?:[0-9]+\\)?,\\(?:[0-9]+\\)?$")
(save-excursion
(backward-char (1+ (length tag)))
(looking-at "[\n \t()=,;]")))) ;rule #3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 0700eb1: Make sure there's no explicit tag name,
Dmitry Gutov <=