GNU bug report logs -
#15920
24.3; [PATCH] etags doesn't recognize functions with [<=>] in them.
Previous Next
Reported by: Oleh <o.krehel <at> tue.nl>
Date: Mon, 18 Nov 2013 17:14:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 24.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
While functions with name like `string=' or `string>' are present in
TAGS generated by etags, `etags-tags-completion-table' doesn't recognize
them. It's fixed by a tweak in the regex it uses. I attach the patch.
regards,
Oleh
[0001-lisp-progmodes-etags.el-etags-tags-completion-table-.patch (text/x-diff, inline)]
From 8ba84e883d68d0d7d83bdb8a96f6b6c42ba52ffe Mon Sep 17 00:00:00 2001
From: Oleh Krehel <ohwoeowho <at> gmail.com>
Date: Mon, 18 Nov 2013 18:06:38 +0100
Subject: [PATCH] lisp/progmodes/etags.el (etags-tags-completion-table): add
[<=>] to tag name regex.
---
lisp/progmodes/etags.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index a7b7e63..7556add 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1285,8 +1285,8 @@ 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]+\\)?\
-\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\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)
(intern (prog1 (if (match-beginning 5)
--
1.8.4
This bug report was last modified 9 years and 92 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.