From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: changing tags-file-name Date: Fri, 08 Dec 2017 12:35:05 +0200 Message-ID: <83r2s5wlra.fsf@gnu.org> References: <20171205113156.06ec0d0e12f0c20750c49187@speakeasy.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1512729359 16046 195.159.176.226 (8 Dec 2017 10:35:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 10:35:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 08 11:35:55 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNG0Z-00043o-1S for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 11:35:55 +0100 Original-Received: from localhost ([::1]:36445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNG0g-0003RY-85 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 05:36:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNG0B-0003NQ-Kj for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 05:35:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNG06-0004B8-NS for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 05:35:31 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNG06-0004B1-Jc for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 05:35:26 -0500 Original-Received: from [176.228.60.248] (port=2754 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eNG06-00078Z-1d for help-gnu-emacs@gnu.org; Fri, 08 Dec 2017 05:35:26 -0500 In-reply-to: <20171205113156.06ec0d0e12f0c20750c49187@speakeasy.net> (jklowden@speakeasy.net) 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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115306 Archived-At: > From: "James K. Lowden" > Date: Tue, 5 Dec 2017 11:31:56 -0500 > > The name of the file AIUI is tags-file-name, which C-h v describes as: > > tags-file-name is a variable defined in ?etags.el?. > Its value is > "/home/jklowden/projects/3rd/libdwarf/code/dwarfgen/TAGS" > > This variable is safe as a file local variable if its value > satisfies the predicate ?stringp?. > > Documentation: > File name of tags table. > To switch to a new tags table, setting this variable is sufficient. > [...] > > When I use M-x set-variable, it rejects tags-file-name. For > "tags-" completion it says, > > Possible completions are: > tags-add-tables tags-apropos-additional-actions > tags-apropos-verbose tags-case-fold-search > tags-compression-info-list tags-loop-revert-buffers > tags-revert-without-query tags-table-list > tags-tag-face > > Why would emacs display a variable name, document that setting is > fine, and not be able to set it? set-variable only supports user options (a.k.a. "defcustoms"). For other variables, use M-: (setq VAR VALUE) RET > Is there an easier way to change the tags file name (or add one and > drop one) that I'm overlooking? You are overlooking "M-x visit-tags-table RET", I think.