From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Matthias Newsgroups: gmane.emacs.bugs Subject: bug#21934: 24.5; find-tag: reading TAGS file incorrectly Date: Mon, 16 Nov 2015 20:47:16 +0100 Message-ID: <87ziyd20cb.fsf@winky.hogwarts> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1447718000 3519 80.91.229.3 (16 Nov 2015 23:53:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 23:53:20 +0000 (UTC) To: 21934@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 00:53:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyTa7-0000vI-L1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 00:53:07 +0100 Original-Received: from localhost ([::1]:52332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyTa6-0000ve-Tn for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 18:53:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyPkz-0000M4-HS for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyPkw-0004MB-8g for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyPkw-0004M7-4r for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZyPkw-0000Vl-0Y for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Matthias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Nov 2015 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21934 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14477032501922 (code B ref -1); Mon, 16 Nov 2015 19:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Nov 2015 19:47:30 +0000 Original-Received: from localhost ([127.0.0.1]:40479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyPkP-0000Uv-4s for submit@debbugs.gnu.org; Mon, 16 Nov 2015 14:47:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53679) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyPkM-0000Un-Q8 for submit@debbugs.gnu.org; Mon, 16 Nov 2015 14:47:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyPkL-0004GT-Cb for submit@debbugs.gnu.org; Mon, 16 Nov 2015 14:47:26 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyPkL-0004GP-8z for submit@debbugs.gnu.org; Mon, 16 Nov 2015 14:47:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyPkJ-0000AH-Nk for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:47:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyPkG-0004Fz-EW for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:47:23 -0500 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyPkG-0004Fq-5a for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 14:47:20 -0500 Original-Received: by wmww144 with SMTP id w144so134867457wmw.0 for ; Mon, 16 Nov 2015 11:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=8aSng1qTSZcnZw1O/dzXk8zONFveNJgo3p7gg7EE44I=; b=iTP7g1rNmXO0EwKby8xLsr6kuzHVMM9Q/AF06BU0rnPs2HeN5yO7vAat8zYVYIbh77 p91p1B489JhCIMSFP0CS2gUZ+n94up7XPzBOocPjhaSIqty7ulwpM+DCKF12A2u5aH3J 034MkSXIAOPx/9kCLzjfjcywNWz3Wl0Nn35QmHKvgi51NsAlWFO1TxBPKPtTFQk/ofAy gA3CxZkbY6FO1qvpr3iqwaUHt83P96RHrVUDVtWFd8RGWh/soZTt36idFFpQhrSSBi5H fYOIOdwh1D8QIDLe6Ax1XUdRHk2r8FLzG/pNOUC7s9MyI1QUJF1fQ8vdwVCznqdpyuPP xMng== X-Received: by 10.28.73.11 with SMTP id w11mr19525735wma.44.1447703239201; Mon, 16 Nov 2015 11:47:19 -0800 (PST) Original-Received: from winky.hogwarts (HSI-KBW-109-193-111-125.hsi7.kabel-badenwuerttemberg.de. [109.193.111.125]) by smtp.gmail.com with ESMTPSA id i18sm20146007wmf.6.2015.11.16.11.47.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 11:47:18 -0800 (PST) Original-Received: by winky.hogwarts (Postfix, from userid 1000) id 09C9E16E064E; Mon, 16 Nov 2015 20:47:16 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108788 Archived-At: --=-=-= Content-Type: text/plain find-tag does not read the TAGS file correctly. This concerns all tags in the TAGS file which contain a period, e.g.: Shape.getPos. Attached is a lua-file with its corresponding TAGS file. Running M-x find-tag does not list the tags correctly. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.lua Content-Transfer-Encoding: base64 UmVjdGFuZ2xlID0ge30KZnVuY3Rpb24gUmVjdGFuZ2xlLmdldFBvcyAoKQplbmQKCkNpcmNsZSA9 IHt9CmZ1bmN0aW9uIENpcmNsZS5nZXRQb3MgKCkKZW5kCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=TAGS Content-Transfer-Encoding: base64 DAp0ZXN0Lmx1YSw2MQpmdW5jdGlvbiBSZWN0YW5nbGUuZ2V0UG9zIH8yLDE1CmZ1bmN0aW9uIENp cmNsZS5nZXRQb3MgfzYsNjEK --=-=-= Content-Type: text/plain I think the problem is in function etags-tags-completion-table() in etags.el. Here is a patch: --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=etags.patch --- etags.el.orig 2015-11-16 20:25:20.153470934 +0100 +++ etags.el 2015-11-16 20:25:27.101470859 +0100 @@ -1285,8 +1285,8 @@ ;; \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) --=-=-= Content-Type: text/plain Andreas In GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-08-25 on winky Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.3 LTS Configured using: `configure --prefix=/home/andreas/local/emacs-24.5' Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t show-paren-mode: t TeX-PDF-mode: t global-auto-complete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow flyspell ispell nnir emacsbug misearch multi-isearch derived apropos help-mode thingatpt ac-etags etags lua-mode rx flow-fill mule-util w3m-form w3m browse-url doc-view jka-compr dired image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mm-archive qp vc-dispatcher vc-svn sort gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml disp-table gnus-topic nndraft nnmh nnfolder parse-time bbdb-gnus bbdb-mua bbdb-com netrc network-stream auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message sendmail format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit flymake compile comint ansi-color ring paren cus-start cus-load bbdb bbdb-site timezone git-messenger auto-complete-auctex latex easy-mmode tex-style tex dbus xml crm advice help-fns mmm-noweb mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat cl auto-complete-config auto-complete edmacro kmacro cl-macs gv popup cl-loaddefs cl-lib tex-site info easymenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 463756 69676) (symbols 48 162620 0) (miscs 40 205 925) (strings 32 181716 11817) (string-bytes 1 4773158) (vectors 16 34424) (vector-slots 8 759595 16405) (floats 8 357 427) (intervals 56 17755 62) (buffers 960 35) (heap 1024 70832 3857)) --=-=-=--