From unknown Fri Jun 20 19:46:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21443 <21443@debbugs.gnu.org> To: bug#21443 <21443@debbugs.gnu.org> Subject: Status: 24.5; etags' complete-tag changes the global value of tags-file-name Reply-To: bug#21443 <21443@debbugs.gnu.org> Date: Sat, 21 Jun 2025 02:46:13 +0000 retitle 21443 24.5; etags' complete-tag changes the global value of tags-fi= le-name reassign 21443 emacs submitter 21443 HuangMario severity 21443 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 11:39:27 2015 Received: (at submit) by debbugs.gnu.org; 9 Sep 2015 15:39:27 +0000 Received: from localhost ([127.0.0.1]:53987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZhT4-0006Wk-Mp for submit@debbugs.gnu.org; Wed, 09 Sep 2015 11:39:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59722) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZfGj-0002yC-66 for submit@debbugs.gnu.org; Wed, 09 Sep 2015 09:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZfGh-0002t2-Vb for submit@debbugs.gnu.org; Wed, 09 Sep 2015 09:18:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZfGh-0002sl-Iy for submit@debbugs.gnu.org; Wed, 09 Sep 2015 09:18:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZfGg-00058A-Aw for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 09:18:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZfGd-0002pz-3d for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 09:18:30 -0400 Received: from nk11p07mm-asmtp001.mac.com ([17.158.42.246]:41600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZfGc-0002me-Tn for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 09:18:27 -0400 Received: from [192.168.3.5] (unknown [36.249.135.177]) by nk11p07mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NUE004SZVM7YG40@nk11p07mm-asmtp001.mac.com> for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 13:18:19 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-09-09_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=3.21964677141295e-15 compositescore=0.652725364687762 phishscore=0 kscore.is_spamscore=0 rbsscore=0.652725364687762 recipient_to_sender_totalscore=0 spamscore=0 urlsuspectscore=0.652725364687762 adultscore=0 kscore.compositescore=0 circleOfTrustscore=0 suspectscore=1 recipient_domain_to_sender_totalscore=0 bulkscore=0 recipient_domain_to_sender_domain_totalscore=0 recipient_to_sender_domain_totalscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1412110000 definitions=main-1509090210 From: HuangMario Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Subject: 24.5; etags' complete-tag changes the global value of tags-file-name Message-id: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> Date: Wed, 09 Sep 2015 21:18:04 +0800 To: bug-gnu-emacs@gnu.org MIME-version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 09 Sep 2015 11:39:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I'm using etags and found that: Step 0. Set the 'tags-file-name' as buffer local to a specified TAGS = file, and the global value is nil. Step 1. Press M-. to find tags. Step 2. Input some characters in the mini-buffer and press the TAB key = for completion, then the mini-buffer will display "Making tags = completion table for ...done". After that, the global value of 'tags-file-name' is set to the same as = its local value. How can I keep the global value nil ? In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-11 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: etags-update-minor-mode: t irony-mode: t global-company-mode: t company-mode: t yas-global-mode: t yas-minor-mode: t global-auto-revert-mode: t show-paren-mode: t global-linum-mode: t linum-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent messages: Undo! [3 times] Saving file /Users/mario/Documents/mcc/decl.c... Wrote /Users/mario/Documents/mcc/decl.c (No files need saving) Compilation finished Mark set Saving file /Users/mario/Documents/mcc/decl.c... Wrote /Users/mario/Documents/mcc/decl.c (No files need saving) Compilation finished Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs 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 help-fns mail-prsvr mail-utils compile comint ansi-color lisp-mnt irony-cdb-clang-complete irony-cdb vc-git cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs etags-update company-files company-oddmuse company-keywords company-etags etags ring company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company-irony irony-completion irony-snippet company-irony-c-headers irony find-func company cl-extra yasnippet help-mode easymenu cl gv package epg-config leuven-theme edmacro kmacro cl-loaddefs cl-lib autorevert filenotify paren linum time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win 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 cocoa ns multi-tty emacs) Memory information: ((conses 16 198579 14210) (symbols 48 27156 0) (miscs 40 386 764) (strings 32 44533 8694) (string-bytes 1 1199266) (vectors 16 19605) (vector-slots 8 545370 14451) (floats 8 484 293) (intervals 56 2046 340) (buffers 960 18)) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 12:39:07 2015 Received: (at control) by debbugs.gnu.org; 9 Sep 2015 16:39:07 +0000 Received: from localhost ([127.0.0.1]:54093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZiOo-00082m-QS for submit@debbugs.gnu.org; Wed, 09 Sep 2015 12:39:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35269) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZiOm-00082c-Iq for control@debbugs.gnu.org; Wed, 09 Sep 2015 12:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZiOl-0008Da-IM for control@debbugs.gnu.org; Wed, 09 Sep 2015 12:39:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:54885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZiOl-0008DJ-FN for control@debbugs.gnu.org; Wed, 09 Sep 2015 12:39:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZZiOl-0003MA-9M for control@debbugs.gnu.org; Wed, 09 Sep 2015 12:39:03 -0400 Subject: control message for bug 21443 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 09 Sep 2015 12:39:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 17326 21443 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 10 15:06:16 2015 Received: (at 21443) by debbugs.gnu.org; 10 Sep 2015 19:06:16 +0000 Received: from localhost ([127.0.0.1]:55604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Za7Al-0004xs-NS for submit@debbugs.gnu.org; Thu, 10 Sep 2015 15:06:16 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:40994) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Za7Aj-0004xj-Fu for 21443@debbugs.gnu.org; Thu, 10 Sep 2015 15:06:14 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NUH00A006CV0C00@a-mtaout23.012.net.il> for 21443@debbugs.gnu.org; Thu, 10 Sep 2015 22:06:12 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUH00A0B6EB0F00@a-mtaout23.012.net.il>; Thu, 10 Sep 2015 22:06:12 +0300 (IDT) Date: Thu, 10 Sep 2015 22:06:03 +0300 From: Eli Zaretskii Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name In-reply-to: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> X-012-Sender: halo1@inter.net.il To: HuangMario Message-id: <83pp1q3xic.fsf@gnu.org> References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: HuangMario > Date: Wed, 09 Sep 2015 21:18:04 +0800 > > Step 0. Set the 'tags-file-name' as buffer local to a specified TAGS file, and the global value is nil. > > Step 1. Press M-. to find tags. > > Step 2. Input some characters in the mini-buffer and press the TAB key for completion, then the mini-buffer will display "Making tags completion table for ...done". > > After that, the global value of 'tags-file-name' is set to the same as its local value. > > How can I keep the global value nil ? According to this doc string: (defun visit-tags-table (file &optional local) "Tell tags commands to use tags table file FILE. FILE should be the name of a file created with the `etags' program. A directory name is ok too; it means file TAGS in that directory. Normally \\[visit-tags-table] sets the global value of `tags-file-name'. With a prefix arg, set the buffer-local value instead. you are supposed to invoke visit-tags-table manually with a numeric argument, if you want the local value of tags-file-name set. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 10 20:31:05 2015 Received: (at 21443) by debbugs.gnu.org; 11 Sep 2015 00:31:05 +0000 Received: from localhost ([127.0.0.1]:55965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaCF6-0004wU-OH for submit@debbugs.gnu.org; Thu, 10 Sep 2015 20:31:04 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:34651) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaCF4-0004w8-6J for 21443@debbugs.gnu.org; Thu, 10 Sep 2015 20:31:02 -0400 Received: by wicfx3 with SMTP id fx3so46311872wic.1 for <21443@debbugs.gnu.org>; Thu, 10 Sep 2015 17:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=lSUbCZipEHfiNRJM27TJK/N8W2oMj/tJlTX8WOnGpdA=; b=F/2H8VwzPjTCBQEjgjw8yKqpesxn0s61BPm/Q4LMVE3EgvQOMcEsmRIBZ7Y9OOaw75 rbQSIP3hHrq3vbal4ZC9y5ksCucP4AhzhgZ87eB5jNZnAk05HU8MzDFrzEXI91XcOTT1 XRdKRvhRLiorHgn/z+HcMeesdWp8RSY5cgD7qgi3td9J8wkjqA0n5hhOVrOWeu0IbcGH qf5OWto+YoGRWKQul5PxX7cdWQMoocWk59VOsJH6tYncQBtO9Sk9ywwCppxo7OwgTOty b0KzwZUHI1EPyEU6nn71Nf6+2yfAI3j2bGwkuizTEMa1zSi0harnNCcuEJ7TyshMbtBk hvPg== X-Received: by 10.194.62.173 with SMTP id z13mr48029309wjr.59.1441931461577; Thu, 10 Sep 2015 17:31:01 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id x10sm11847838wiy.6.2015.09.10.17.30.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 17:31:00 -0700 (PDT) Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name To: Eli Zaretskii , HuangMario References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> From: Dmitry Gutov Message-ID: <55F220B8.1010902@yandex.ru> Date: Fri, 11 Sep 2015 03:30:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 MIME-Version: 1.0 In-Reply-To: <83pp1q3xic.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/10/2015 10:06 PM, Eli Zaretskii wrote: > you are supposed to invoke visit-tags-table manually with a numeric > argument, if you want the local value of tags-file-name set. Some users prefer to set tags-table-name programmatically. It appears the problem is that etags--xref-find-definitions calls visit-tags-table-buffer unconditionally, and the latter doesn't honor the buffer-local value of this variable. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 00:56:57 2015 Received: (at 21443) by debbugs.gnu.org; 11 Sep 2015 04:56:57 +0000 Received: from localhost ([127.0.0.1]:56023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaGOO-0002UU-Mn for submit@debbugs.gnu.org; Fri, 11 Sep 2015 00:56:56 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:41194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaGOL-0002UK-DD for 21443@debbugs.gnu.org; Fri, 11 Sep 2015 00:56:55 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NUH00O00XBA3T00@mtaout25.012.net.il> for 21443@debbugs.gnu.org; Fri, 11 Sep 2015 07:53:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUH00IW7XLFDK60@mtaout25.012.net.il>; Fri, 11 Sep 2015 07:53:39 +0300 (IDT) Date: Fri, 11 Sep 2015 07:56:44 +0300 From: Eli Zaretskii Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name In-reply-to: <55F220B8.1010902@yandex.ru> X-012-Sender: halo1@inter.net.il To: Dmitry Gutov Message-id: <83mvwt4kqb.fsf@gnu.org> References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> <55F220B8.1010902@yandex.ru> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org, guiyang.huang@me.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Cc: 21443@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 11 Sep 2015 03:30:48 +0300 > > On 09/10/2015 10:06 PM, Eli Zaretskii wrote: > > > you are supposed to invoke visit-tags-table manually with a numeric > > argument, if you want the local value of tags-file-name set. > > Some users prefer to set tags-table-name programmatically. > > It appears the problem is that etags--xref-find-definitions calls > visit-tags-table-buffer unconditionally, and the latter doesn't honor > the buffer-local value of this variable. The OP was talking about Emacs 24.5; there's no xref there AFAIK. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 02:57:57 2015 Received: (at 21443) by debbugs.gnu.org; 11 Sep 2015 06:57:57 +0000 Received: from localhost ([127.0.0.1]:56074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaIHU-0005Q8-Lw for submit@debbugs.gnu.org; Fri, 11 Sep 2015 02:57:57 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:37099) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaIHR-0005Py-Rr for 21443@debbugs.gnu.org; Fri, 11 Sep 2015 02:57:55 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NUI00O002T48600@mtaout27.012.net.il> for 21443@debbugs.gnu.org; Fri, 11 Sep 2015 09:54:28 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUI0006I36SGA00@mtaout27.012.net.il>; Fri, 11 Sep 2015 09:54:28 +0300 (IDT) Date: Fri, 11 Sep 2015 09:57:44 +0300 From: Eli Zaretskii Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name In-reply-to: <4b3df5cb.21a.14fbb06425d.Coremail.mohu3g@163.com> X-012-Sender: halo1@inter.net.il To: HGY Message-id: <83lhcd4f4n.fsf@gnu.org> References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> <4b3df5cb.21a.14fbb06425d.Coremail.mohu3g@163.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Fri, 11 Sep 2015 14:09:53 +0800 (CST) > From: HGY > > As you say, how can I inhiit the mini-buffer completion to invoke > 'visit-tags-table' with no prefix arg in step 2 ? You can't, currently. You need to invoke visit-tags-table manually, with a prefix argument, before the mini-buffer completion. This is how the code was designed. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 09:59:38 2015 Received: (at 21443) by debbugs.gnu.org; 11 Sep 2015 13:59:38 +0000 Received: from localhost ([127.0.0.1]:56984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaOra-0000Eo-GS for submit@debbugs.gnu.org; Fri, 11 Sep 2015 09:59:38 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35394) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaOrY-0000Eg-Nc for 21443@debbugs.gnu.org; Fri, 11 Sep 2015 09:59:37 -0400 Received: by wicge5 with SMTP id ge5so64288131wic.0 for <21443@debbugs.gnu.org>; Fri, 11 Sep 2015 06:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=jYsmI7+CdU7ahnvEucf1P4jXjl20ii4n8x/kqzZG6qM=; b=l9yaY0SP6mSJApjb3eYfzRDI6Ru1UwtKz39dA2OrqIZ74VUDW3QSlOyKmS4NJGpt6I csJbcddcDv1+f3pSyLX3D/wdmLo5KtXHMx0CeeAh9Bu9ElsTvIsfiAIu/tJ1qHl7NdBI WbbxJejy1qZTedU84zqX2XxumZ9itWyamCgjJ3ERd1hBbH/9mX5AyRSdJi0cNNZfJ+Ua kQudvH03FOWCHeXliRPTNqlmt3qBjAIUqjJWN497Mi/qalQLPzXBiX0b0WJyWWFeNqre qm7wWan/Qsk/HWY0ElMQiQjD9m2EUfdAb8+l9l12TR6SF0XG8+mT17zw7Oyg3f/trzCd xyrw== X-Received: by 10.180.104.38 with SMTP id gb6mr4806137wib.86.1441979975970; Fri, 11 Sep 2015 06:59:35 -0700 (PDT) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id ex8sm692666wib.14.2015.09.11.06.59.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 06:59:35 -0700 (PDT) Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name To: Eli Zaretskii References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> <55F220B8.1010902@yandex.ru> <83mvwt4kqb.fsf@gnu.org> From: Dmitry Gutov Message-ID: <55F2DE3A.1040401@yandex.ru> Date: Fri, 11 Sep 2015 16:59:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 MIME-Version: 1.0 In-Reply-To: <83mvwt4kqb.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org, guiyang.huang@me.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/11/2015 07:56 AM, Eli Zaretskii wrote: > The OP was talking about Emacs 24.5; there's no xref there AFAIK. Right, sorry, there's no xref there. But the scenario is similar: tags-completion-table calls visit-tags-table-buffer, and the latter doesn't honor buffer-local values. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 23:54:44 2015 Received: (at 21443) by debbugs.gnu.org; 16 Sep 2015 03:54:44 +0000 Received: from localhost ([127.0.0.1]:33791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zc3nu-0004RR-T5 for submit@debbugs.gnu.org; Tue, 15 Sep 2015 23:54:43 -0400 Received: from m13-17.163.com ([220.181.13.17]:48065) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zc2Wy-0002Zq-JE for 21443@debbugs.gnu.org; Tue, 15 Sep 2015 22:33:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=q4R4O 51KyWc/Yjdb6F0r9jNUo1Qub7XModmoQy0gvc0=; b=kTemUgjQxIFQz1gFYwnqb +shRLA6GzNOyCD8bPSbvVJubcusWpKUZEsUuzE4iDcztJiz1r7sonSo0YK23uJDp wLWfnbwYM5rbP9eWpQxFLk7fC1MwHTGfllj85fGZG//RLXs/uUcsypHhggNozYu1 n83gdsGIJm2uaYw/Eu2Wkk= Received: from mohu3g$163.com ( [117.25.157.68, 220.181.12.114] ) by ajax-webmail-wmsvr17 (Coremail) ; Wed, 16 Sep 2015 10:33:00 +0800 (CST) X-Originating-IP: [117.25.157.68, 220.181.12.114] Date: Wed, 16 Sep 2015 10:33:00 +0800 (CST) From: HGY To: "Dmitry Gutov" Subject: Re:bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20150119(59087.7062) Copyright (c) 2002-2015 www.mailtech.cn 163com In-Reply-To: <55F2DE3A.1040401@yandex.ru> References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> <55F220B8.1010902@yandex.ru> <83mvwt4kqb.fsf@gnu.org> <55F2DE3A.1040401@yandex.ru> X-CM-CTRLDATA: FelfP2Zvb3Rlcl9odG09ODY2OjU2 Content-Type: multipart/alternative; boundary="----=_Part_727_2051530217.1442370780400" MIME-Version: 1.0 Message-ID: <6ca568c.11d.14fd3ff7cf1.Coremail.mohu3g@163.com> X-CM-TRANSID: EcGowABHGZjd1PhV3PlrAA--.12411W X-CM-SenderInfo: 5prk3jrj6rljoofrz/1tbiLRF3M1SIKRGwOQABsU X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21443 X-Mailman-Approved-At: Tue, 15 Sep 2015 23:54:41 -0400 Cc: 21443 <21443@debbugs.gnu.org>, Eli Zaretskii , "guiyang.huang" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) ------=_Part_727_2051530217.1442370780400 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 WWVhaCwgSSB0aGluayBzby4KCgpCZXN0IFJlZ2FyZHMuCgpHdWl5YW5nIEh1YW5nCgoKCgoKCtTa MjAxNcTqMDnUwjExIDIxyrE1ObfWLCAiRG1pdHJ5IEd1dG92IjxkZ3V0b3ZAeWFuZGV4LnJ1PtC0 tcA6CgpPbiAwOS8xMS8yMDE1IDA3OjU2IEFNLCBFbGkgWmFyZXRza2lpIHdyb3RlOgoKPiBUaGUg T1Agd2FzIHRhbGtpbmcgYWJvdXQgRW1hY3MgMjQuNTsgdGhlcmUncyBubyB4cmVmIHRoZXJlIEFG QUlLLgoKUmlnaHQsIHNvcnJ5LCB0aGVyZSdzIG5vIHhyZWYgdGhlcmUuCgpCdXQgdGhlIHNjZW5h cmlvIGlzIHNpbWlsYXI6IHRhZ3MtY29tcGxldGlvbi10YWJsZSBjYWxscwp2aXNpdC10YWdzLXRh YmxlLWJ1ZmZlciwgYW5kIHRoZSBsYXR0ZXIgZG9lc24ndCBob25vciBidWZmZXItbG9jYWwgdmFs dWVzLgoKCgo= ------=_Part_727_2051530217.1442370780400 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0iY29sb3I6IzAwMDsgZm9udC1zaXplOiAxNHB4O2ZvbnQtZmFtaWx5OiBhcmlh bDsiPjxkaXY+WWVhaCwgSSB0aGluayBzby48L2Rpdj48ZGl2Pjxicj48L2Rpdj48L2Rpdj48ZGl2 IGlkPSJzcG5FZGl0b3JTaWduIiBuYW1lPSIxMDAiPjxkaXY+PGRpdiBzdHlsZT0iZm9udC1zaXpl OiAxNHB4O2ZvbnQtZmFtaWx5OiBhcmlhbDsiPjxkaXY+QmVzdCBSZWdhcmRzLjxicj48L2Rpdj48 ZGl2Pkd1aXlhbmcgSHVhbmc8L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48L2Rp dj48L2Rpdj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48IS0tIGp5NUNvbnRlbnRTdWZmaXggLS0+PGRp dj7U2jIwMTXE6jA51MIxMSAyMcqxNTm31iwgIkRtaXRyeSBHdXRvdiImbHQ7ZGd1dG92QHlhbmRl eC5ydSZndDvQtLXAOjwvZGl2PjxibG9ja3F1b3RlIGlkPSJpc1JlcGx5Q29udGVudCIgc3R5bGU9 InBhZGRpbmctbGVmdDoxZXg7IG1hcmdpbjogMHB4IDBweCAwcHggMC44ZXg7IEJPUkRFUi1MRUZU OiAjY2NjIDFweCBzb2xpZCI+PGJyPk9uIDA5LzExLzIwMTUgMDc6NTYgQU0sIEVsaSBaYXJldHNr aWkgd3JvdGU6PGJyPjxicj4mZ3Q7IFRoZSBPUCB3YXMgdGFsa2luZyBhYm91dCBFbWFjcyAyNC41 OyB0aGVyZSdzIG5vIHhyZWYgdGhlcmUgQUZBSUsuPGJyPjxicj5SaWdodCwgc29ycnksIHRoZXJl J3Mgbm8geHJlZiB0aGVyZS48YnI+PGJyPkJ1dCB0aGUgc2NlbmFyaW8gaXMgc2ltaWxhcjogdGFn cy1jb21wbGV0aW9uLXRhYmxlIGNhbGxzIDxicj52aXNpdC10YWdzLXRhYmxlLWJ1ZmZlciwgYW5k IHRoZSBsYXR0ZXIgZG9lc24ndCBob25vciBidWZmZXItbG9jYWwgdmFsdWVzLjxicj48YnI+PGJy Pjxicj48L2Jsb2NrcXVvdGU+PGJyPjxicj48c3BhbiB0aXRsZT0ibmV0ZWFzZWZvb3RlciI+PHA+ Jm5ic3A7PC9wPjwvc3Bhbj4= ------=_Part_727_2051530217.1442370780400-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 17:03:18 2015 Received: (at 21443) by debbugs.gnu.org; 23 Nov 2015 22:03:19 +0000 Received: from localhost ([127.0.0.1]:49963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0zCg-0002lc-Hw for submit@debbugs.gnu.org; Mon, 23 Nov 2015 17:03:18 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34139) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0zCe-0002lU-Mw for 21443@debbugs.gnu.org; Mon, 23 Nov 2015 17:03:17 -0500 Received: by wmvv187 with SMTP id v187so182334735wmv.1 for <21443@debbugs.gnu.org>; Mon, 23 Nov 2015 14:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=SKQBMK7rsDBt4wtaG8I4EHFenBq7Nwfz5WlB0K7Ostw=; b=K7Fne8HXL997twX0VJTsHuaeZv16uMAuI1nZQOlzrdlLQIisq9iYAFm+PlSY8rM7GB F9yClQuR4SjtZ3L+4vww19oENj1AsOzzn2J/7Dg+7utAknVr6vvnN7zvOK2iImqA8NjA Qtohk1fh8blB3/w+pJgNO449/wyLERI/MlmopPwJhGrrTYqs9WUkVDd4eXhYZhdXNXja uKw4NSFWmtXcgNonJr0d4/4t5QWniLCTnnv0MQel+CrnUwC9UteGrAVRu14siXeCXEj+ /LuHz6EIwN5LfRZ3SvNJKFpcWP5pJ2FIRPf5lZ/8KgCCDor930+wE0GjmXvPdOeU2+20 lAPw== X-Received: by 10.28.4.7 with SMTP id 7mr20467822wme.85.1448316195826; Mon, 23 Nov 2015 14:03:15 -0800 (PST) Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id n127sm15098664wmf.12.2015.11.23.14.03.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Nov 2015 14:03:14 -0800 (PST) Subject: Re: bug#21443: 24.5; etags' complete-tag changes the global value of tags-file-name To: Eli Zaretskii , HGY References: <935A139E-4ED1-468D-9B23-CD0999D296F8@me.com> <83pp1q3xic.fsf@gnu.org> <4b3df5cb.21a.14fbb06425d.Coremail.mohu3g@163.com> <83lhcd4f4n.fsf@gnu.org> From: Dmitry Gutov Message-ID: <56538D20.9090106@yandex.ru> Date: Tue, 24 Nov 2015 00:03:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 MIME-Version: 1.0 In-Reply-To: <83lhcd4f4n.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21443 Cc: 21443@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 09/11/2015 09:57 AM, Eli Zaretskii wrote: > You can't, currently. You need to invoke visit-tags-table manually, > with a prefix argument, before the mini-buffer completion. This is > how the code was designed. Unfortunately, this is also broken: you can C-u M-x visit-tags-table, and it will set the local value of tags-file-name, but as soon as you M-x find-tag, it changes the global value of tags-file-name as well, to the last element in tags-table-list. Apparently because the lambda in tags-lazy-completion-table calls visit-tags-table-buffer at least twice, and the latter function modifies tags-file-name, _and_ changes the current buffer (and when called the second time, it changes tags-file-name in the tags table buffer, thus changing the global value). And I can't simply wrap most of the second half of visit-tags-table-buffer in a with-current-buffer, because some code assumes that the buffer does indeed change. Otherwise, the value of tags-completion-table-function is nil (tags-completion-table calls it after calling visit-tags-table-buffer). Modifications of tags-file-name are also numerous, so changing a couple of setq to setq-local inside visit-tags-table-buffer doesn't do the trick either. At this point I'm leaving this to someone else who's more motivated. But we'll likely already migrate to e.g. GNU Global before that happens. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 11:54:08 2016 Received: (at control) by debbugs.gnu.org; 1 Dec 2016 16:54:08 +0000 Received: from localhost ([127.0.0.1]:48924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCUca-0003DU-4e for submit@debbugs.gnu.org; Thu, 01 Dec 2016 11:54:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCUcZ-0003DH-9W for control@debbugs.gnu.org; Thu, 01 Dec 2016 11:54:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCUcQ-0001DF-47 for control@debbugs.gnu.org; Thu, 01 Dec 2016 11:54:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCUcQ-0001DA-0v; Thu, 01 Dec 2016 11:53:58 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3783 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cCUcN-0005ub-4r; Thu, 01 Dec 2016 11:53:57 -0500 Date: Thu, 01 Dec 2016 18:53:48 +0200 Message-Id: <83fum7pp43.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-reply-to: (message from Dmitry Gutov on Wed, 30 Nov 2016 03:12:20 +0200) Subject: Re: Bugs related to buffer-local tags-file-name References: <87zikr4a8y.fsf@gmail.com> <3f470a39-6bd4-bbb4-c693-ef889118fdf2@yandex.ru> <87wpfv3qrm.fsf@gmail.com> <838ts86atl.fsf@gnu.org> <83r3603t7o.fsf@gnu.org> <83twau1n0u.fsf@gnu.org> <87poli3ztj.fsf@gmail.com> <83polexkop.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: control Cc: jschwab@gmail.com, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) close 158 close 17326 close 23164 close 19741 thanks > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Wed, 30 Nov 2016 03:12:20 +0200 > > On 29.11.2016 19:25, Eli Zaretskii wrote: > > > Dmitry, should I wait for your testing as well, or should I just push > > the changes? > > Yes, sorry. I think you should go ahead with them, maybe with some minor > tweaks. Done. > - In visit-tags-table-buffer's docstring, "optional arg CONT" should > probably be just "CONT", all three times. Fixed. > - More importantly, this patch contains a backward-incompatible change > to the tags-completion-table function. Maybe we should consider how to > make BUF an optional argument. It is optional now. > - It would be great if let-binding tags-table-list around > tags-lazy-completion-table didn't leak it to the global value either > (which happens with company-etags). Alas, this seems to be a harder task. Right, patches welcome. From unknown Fri Jun 20 19:46:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Dec 2016 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator