[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tex-mode.el dependency on (cl) every?
From: |
David Kastrup |
Subject: |
Re: tex-mode.el dependency on (cl) every? |
Date: |
Mon, 17 Sep 2007 16:07:40 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> I see that we have
>
> +(put 'tex-verbatim-environments 'safe-local-variable
> + (lambda (x) (require 'cl) (every 'stringp x)))
>
> Couldn't we rather use the equivalent
> (lambda (x) (null (delq t (mapcar 'stringp x))))
> instead?
>
> And why is this needed at all? tex-verbatim-environments is only ever
> passed to regexp-opt and member, so any old value will be _safe_. So
> it should be ok just to do
>
> (put 'tex-verbatim-environments 'safe-local-variable t)
>
> shouldn't it?
Well, or
(put 'tex-verbatim-environments 'safe-local-variable 'listp)
at least.
--
David Kastrup