[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Canonical way of marking a buf local var to be safe if nil/t?
From: |
Kaushal Modi |
Subject: |
Canonical way of marking a buf local var to be safe if nil/t? |
Date: |
Thu, 12 May 2016 17:32:28 +0000 |
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
- Canonical way of marking a buf local var to be safe if nil/t?,
Kaushal Modi <=