[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More safe local variables
From: |
Johan Bockgård |
Subject: |
More safe local variables |
Date: |
Sat, 22 Apr 2006 23:32:03 +0200 |
User-agent: |
Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) |
`hack-one-local-variable-eval-safep' looks for `(put ...)' expressions
involving the `lisp-indent-hook' property, but not the
`lisp-indent-function' variant. The latter is the one that is
documented in the manual.
Maybe it should handle the `common-lisp-indent-function' property too
(used by cl-indent.el).
Currently
(hack-one-local-variable-eval-safep
'(put 'foo 'lisp-indent-hook 0)) => t
(hack-one-local-variable-eval-safep
'(put 'foo 'lisp-indent-function 0)) => nil
(hack-one-local-variable-eval-safep
'(put 'foo 'common-lisp-indent-function 0)) => nil
(And maybe `hack-one-local-variable-eval-safep' could use the
`safe-local-eval-function' property mechanism for checking `put'
expressions.)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- More safe local variables,
Johan Bockgård <=