unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them.
@ 2013-11-18 17:12 Oleh
  2016-02-24  3:56 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2013-11-18 17:12 UTC (permalink / raw)
  To: 15920

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-progmodes-etags.el-etags-tags-completion-table-.patch --]
[-- Type: text/x-diff, Size: 1060 bytes --]

From 8ba84e883d68d0d7d83bdb8a96f6b6c42ba52ffe Mon Sep 17 00:00:00 2001
From: Oleh Krehel <ohwoeowho@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them.
  2013-11-18 17:12 bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them Oleh
@ 2016-02-24  3:56 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-24  3:56 UTC (permalink / raw)
  To: Oleh; +Cc: 15920

Oleh <o.krehel@tue.nl> writes:

> 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.

I'm unable to reproduce this bug on the current trunk, so this may have
been fixed in the meantime.  I'm closing this bug report, but please
reopen if this is still a problem.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-24  3:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-18 17:12 bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them Oleh
2016-02-24  3:56 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).