all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.