unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Canonical way of marking a buf local var to be safe if nil/t?
@ 2016-05-12 17:32 Kaushal Modi
  2016-05-12 17:39 ` John Mastro
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Modi @ 2016-05-12 17:32 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi,

What would be a canonical way (if any) of setting a var to be a safe buffer
local variable as long as its value is either nil or t?

I use

(put 'my-foo-var 'safe-local-variable (lambda (val) (or (equal val nil)
(equal val t))))
-- 

-- 
Kaushal Modi


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

end of thread, other threads:[~2016-05-12 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 17:32 Canonical way of marking a buf local var to be safe if nil/t? Kaushal Modi
2016-05-12 17:39 ` John Mastro
2016-05-12 17:41   ` Kaushal Modi

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).