emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moved safe-local-variable properties from `files.el'


From: Reiner Steib
Subject: Moved safe-local-variable properties from `files.el'
Date: Thu, 11 May 2006 17:02:06 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Hi,

I continued to move the safe-local-variable properties from `files.el'
to the files where the variables are defined (if they aren't defined
in C code).  I noticed a few discrepancies:

- (put 'byte-compile-warnings 'safe-local-variable 'booleanp)

  The custom type allows:

  :type `(choice (const :tag "All" t)
                 (set :menu-tag "Some"
                      (const free-vars) (const unresolved)
                      (const callargs) (const redefine)
                      (const obsolete) (const noruntime)
                      (const cl-functions) (const interactive-only))))

  I.e. `booleanp' doesn't allow a list.

- In `files.el' we had: (c-file-style . stringp).  If changed it to
  (put 'c-file-style 'safe-local-variable 'string-or-null-p).

- In `files.el' we had: (version-control . symbolp)

  The custom type allows:

  :type '(choice (const :tag "Never" never)
                 (const :tag "If existing" nil)
                 (other :tag "Always" t))

  I.e. `symbolp' might allow too much.

- `no-update-autoloads':

  I couldn't find a defvar/defcustom and it's not documented in
  (info "(emacs)Specifying File Variables").

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]