unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Can tags-file-name be set by .dir-locals.el
@ 2010-07-31  9:27 Plato Wu
  0 siblings, 0 replies; 2+ messages in thread
From: Plato Wu @ 2010-07-31  9:27 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread
* Can tags-file-name be set by .dir-locals.el
@ 2010-07-16 13:10 Plato Wu
  0 siblings, 0 replies; 2+ messages in thread
From: Plato Wu @ 2010-07-16 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

I have made tags-file-name local by make-variable-buffer-local,
.dir-locals.el still could set it for files in its directory.

Is it possible for my purpose: set different tags file for different
directories.

Thank you in advance!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-31  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-31  9:27 Can tags-file-name be set by .dir-locals.el Plato Wu
  -- strict thread matches above, loose matches on Subject: below --
2010-07-16 13:10 Plato Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).