* 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
* 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
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-16 13:10 Can tags-file-name be set by .dir-locals.el Plato Wu
-- strict thread matches above, loose matches on Subject: below --
2010-07-31 9:27 Plato Wu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.