From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Plato Wu Newsgroups: gmane.emacs.help Subject: Re: Can tags-file-name be set by .dir-locals.el Date: Sat, 31 Jul 2010 17:27:07 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <87bp9oj91w.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291947394 13765 80.91.229.12 (10 Dec 2010 02:16:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 02:16:34 +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 10 03:16:31 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQsX3-0007as-9O for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 03:16:25 +0100 Original-Received: from localhost ([127.0.0.1]:58204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQsIG-0003oo-Qe for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 21:01:08 -0500 Original-Path: usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 8 Original-NNTP-Posting-Host: 218.22.80.155 Original-X-Trace: www.shinco.com 1280568934 13232 218.22.80.155 (31 Jul 2010 09:35:34 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Sat, 31 Jul 2010 09:35:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:/RkFUQEmaMCEw0CypRojA8oNFl4= Original-Xref: usenet.stanford.edu gnu.emacs.help:180245 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:09:06 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77183 Archived-At: I have got the reason, the safe-local-variable property of tags-file-name is nil, so dir-locals regard it as unsafe variables, and the default value is enable-local-variables :safe, so tags-file-name is not set. just put this into .emacs works! (put 'tags-file-name 'safe-local-variable 'stringp) Read The Fucking Code is good! :D