From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarvis Schultz Newsgroups: gmane.emacs.bugs Subject: bug#17326: 24.3.90; find-tag sets global value of tags-file-name Date: Wed, 23 Apr 2014 08:41:16 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115f41a39e90b04f7b5e478 X-Trace: ger.gmane.org 1398276085 14068 80.91.229.3 (23 Apr 2014 18:01:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 18:01:25 +0000 (UTC) To: 17326@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 20:01:19 2014 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 1Wd1Tt-00031X-35 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 20:01:13 +0200 Original-Received: from localhost ([::1]:34128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1Ts-0005H2-Qn for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 14:01:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1To-0005A3-IS for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 14:01:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd1Tj-00029s-KX for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 14:01:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1Tj-00029f-Fs for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 14:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wd1Ti-0004tl-Np for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 14:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jarvis Schultz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Apr 2014 18:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17326 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.139827602118738 (code B ref -1); Wed, 23 Apr 2014 18:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Apr 2014 18:00:21 +0000 Original-Received: from localhost ([127.0.0.1]:56407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wd1T0-0004rv-19 for submit@debbugs.gnu.org; Wed, 23 Apr 2014 14:00:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57766) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WcxQl-0004wB-Oz for submit@debbugs.gnu.org; Wed, 23 Apr 2014 09:41:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcxQj-0004mo-OD for submit@debbugs.gnu.org; Wed, 23 Apr 2014 09:41:43 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcxQj-0004mk-L2 for submit@debbugs.gnu.org; Wed, 23 Apr 2014 09:41:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcxQi-00032N-7A for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 09:41:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcxQg-0004jT-Fa for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 09:41:40 -0400 Original-Received: from mail-oa0-x243.google.com ([2607:f8b0:4003:c02::243]:48676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcxQg-0004ij-7Z for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 09:41:38 -0400 Original-Received: by mail-oa0-f67.google.com with SMTP id j17so288357oag.6 for ; Wed, 23 Apr 2014 06:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=b+2m0n1HUSib90OHkdy/SbqY5f2XE67yylm6hqYTb5k=; b=qXiTObVzbKKEmq3WOCzaYE36FjTEQrOirpJ0/xFZIFmnGPzflAS9Efec2y+k0uPWKj DoY3mfvel6ywL4TN97E70XfLfmLN0P4dJRPsAgB8Q0U8X4FjFTIjVpXkG1rmHPaDCery exfM3xRcCx2N+DwDBoJ7X02juIFwGyfF3n1YOUSr7uZvChlwruw1R7hGiR8mLojvpm7x L2siGr1hdTKQh3XfCVkLFhDBHPnJ/Bp7wvUV95VGlRSm9aEdRftGE/1Th50xSnsNKhfP nu7agFrBXwWedG57Y7Q7lebJfthUw791efl/ADfW9+6Uj5PRD0hJ8Bjvz0Ctw8QqFnRd NgVg== X-Received: by 10.182.181.105 with SMTP id dv9mr2374889obc.59.1398260496982; Wed, 23 Apr 2014 06:41:36 -0700 (PDT) Original-Received: by 10.76.0.116 with HTTP; Wed, 23 Apr 2014 06:41:16 -0700 (PDT) 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-Mailman-Approved-At: Wed, 23 Apr 2014 14:00:13 -0400 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: 140.186.70.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:88262 Archived-At: --089e0115f41a39e90b04f7b5e478 Content-Type: text/plain; charset=UTF-8 Steps to reproduce: - Open emacs with `emacs -Q' - Open source file in a directory with an already-generated TAGS file - Set tags-file-name locally using 'C-u M-x visit-tags-table' and selecting local TAGS - Use 'C-h v tags-file-name' to view value, and it says you have a buffer-local value set to the TAGS file just visited, and global value is nil - Run find-tag with 'M-.', using TAB brings up correct list of tags, and everthing is great - Re-check value of tags-file-name using 'C-h v tags-file-name', and see that the global value is now the same as the local value This causes huge problems when trying to have different tags tables associated with different buffers. Because it seems that once the global value is set, further use of find-tag does not overwrite its value, but its global value takes precedence over the local value. The only way I have been able to get around this is by explicitly setting tags-file-name and tags-table-list in .dir-local.el files in every directory that contains a TAGS table. Also note the documentation explicitly says to not set both tags-file-name and tags-table-list, but using interactive function visit-tags-table ends up setting both anyway. I have experienced this bug both in git build of emacs 24.3.90.1 listed below and in the following build from a PPA: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22 on king, modified by Debian In GNU Emacs 24.3.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2014-04-22 on newton Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.04.4 LTS Configured using: `configure --without-makeinfo' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x C-f f a l f M-x t a g C-g C-u M-x v i s i t - t a g s C-h v t a g s - f M-. s t o p _ a l l _ m o M-* C-h v M-p M-p q M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit Starting a new list of tags tables Type C-x 1 to delete the help window. Making tags completion table for /home/jarvis/Desktop/aluminum_puppeteer/TAGS...done Mark set [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp help-mode help-fns etags ring vc-git cc-langs cl cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs 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 110255 6347) (symbols 48 20801 0) (miscs 40 54 210) (strings 32 19268 4385) (string-bytes 1 626660) (vectors 16 12190) (vector-slots 8 407628 5169) (floats 8 65 216) (intervals 56 529 16) (buffers 960 14) (heap 1024 45108 661)) --089e0115f41a39e90b04f7b5e478 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Steps to reproduce:
=C2=A0- Open emacs = with `emacs -Q'
=C2=A0- Open source file in a directory with = an already-generated TAGS file
=C2=A0- Set tags-file-name locally= using 'C-u M-x visit-tags-table' and
=C2=A0selecting local TAGS
=C2=A0- Use 'C-h v tags-file-= name' to view value, and it says you have a
=C2=A0buffer-loca= l value set to the TAGS file just visited, and global value
=C2= =A0is nil
=C2=A0- Run find-tag with 'M-.', using TAB brings up correct list o= f tags,
=C2=A0and everthing is great
=C2=A0- Re-check v= alue of tags-file-name using 'C-h v tags-file-name', and
= =C2=A0see that the global value is now the same as the local value

This causes huge problems when trying to have different= tags tables
associated with different buffers. Because it seems = that once the global
value is set, further use of find-tag does n= ot overwrite its value, but
its global value takes precedence over the local value. The only way I=
have been able to get around this is by explicitly setting
=
tags-file-name and tags-table-list in .dir-local.el files in every
directory that contains a TAGS table.

Also no= te the documentation explicitly says to not set both
tags-file-na= me and tags-table-list, but using interactive function
visit-tags= -table ends up setting both anyway. I have experienced this
bug both in git build of emacs 24.3.90.1 listed below and in the
=
following build from a PPA:

=C2=A0 GNU Emacs = 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22
= =C2=A0 on king, modified by Debian





=
In GNU Emacs 24.3.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10= )
=C2=A0of 2014-04-22 on newton
Windowing system distri= butor `The X.Org Foundation', version 11.0.11300000
System Description: = Ubuntu 12.04.4 LTS

Configured using:
=C2= =A0`configure --without-makeinfo'

Important se= ttings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-syst= em: utf-8-unix

Major mode: C/l

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
<= div>=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-m= ode: t
=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode= : t

Recent input:
C-x C-f <M-backspace> <M-backspace> f &= lt;tab> <M-backspace>=C2=A0
a l <tab> f <tab>= ; <return> M-x t a g <backspace> <backspace>=C2=A0
<= div><backspace> C-g C-u M-x v i s i t - t a g s <tab> <retur= n>=C2=A0
<return> C-h v t a g s - f <tab> <return> M-. s t o= =C2=A0
p _ a l l _ m o <tab> <return> M-* C-h v M-p M= -p <return>=C2=A0
<help-echo> <down-mouse-2> &l= t;mouse-1> <help-echo> <down-mouse-1>=C2=A0
<mouse-1> q <down-mouse-1> <mouse-1> M-x r e p o r= =C2=A0
t <tab> <return>

Rece= nt messages:
For information about GNU Emacs and the GNU system, = type C-h C-a.
Quit
Starting a new list of tags tables
Type C-x 1= to delete the help window.
Making tags completion table for /hom= e/jarvis/Desktop/aluminum_puppeteer/TAGS...done
Mark set
=C2=A0[2 times]

Load-path shadows:
= None found.

Features:
(shadow sort gnus-= util mail-extr emacsbug message cl-macs gv format-spec
rfc822 mml= mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils pp help-mode help-fns etags ring vc-g= it
cc-langs cl cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-gu= ess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-dat= e
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type m= wheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe ta= bulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow time= r
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 europe= an
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 mu= le
custom widget hashtable-print-readable backquote make-network-= process
dbusbind gfilenotify dynamic-setting system-font-setting<= /div>
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 110255 6347)=
=C2=A0(symbols 48 20801 0)
=C2=A0(miscs 40 54 210)
=C2=A0(strings 32 19268 4385)
=C2=A0(string-bytes 1 626660)
=
=C2=A0(vectors 16 12190)
=C2=A0(vector-slots 8 407628 5169)<= /div>
=C2=A0(floats 8 65 216)
=C2=A0(intervals 56 529 16)
=C2=A0(buffers 960 14)
=C2=A0(heap 1024 45108 661))

--089e0115f41a39e90b04f7b5e478--