[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el |
Date: |
Thu, 13 Apr 2006 10:54:38 +0000 |
Index: emacs/lisp/files.el
diff -u emacs/lisp/files.el:1.825 emacs/lisp/files.el:1.826
--- emacs/lisp/files.el:1.825 Tue Apr 11 17:57:34 2006
+++ emacs/lisp/files.el Thu Apr 13 10:54:38 2006
@@ -2689,12 +2689,14 @@
(and (eq (car exp) 'put)
(hack-one-local-variable-quotep (nth 1 exp))
(hack-one-local-variable-quotep (nth 2 exp))
- (memq (nth 1 (nth 2 exp))
- '(lisp-indent-hook))
- ;; Only allow safe values of lisp-indent-hook;
- ;; not functions.
- (or (numberp (nth 3 exp))
- (equal (nth 3 exp) ''defun)))
+ (let ((prop (nth 1 (nth 2 exp))) (val (nth 3 exp)))
+ (cond ((eq prop 'lisp-indent-hook)
+ ;; Only allow safe values of lisp-indent-hook;
+ ;; not functions.
+ (or (numberp val) (equal val ''defun)))
+ ((eq prop 'edebug-form-spec)
+ ;; Only allow indirect form specs.
+ (edebug-basic-spec val)))))
;; Allow expressions that the user requested.
(member exp safe-local-eval-forms)
;; Certain functions can be allowed with safe arguments
- [Emacs-diffs] Changes to emacs/lisp/files.el, Andreas Schwab, 2006/04/04
- [Emacs-diffs] Changes to emacs/lisp/files.el, Reiner Steib, 2006/04/06
- [Emacs-diffs] Changes to emacs/lisp/files.el, Reiner Steib, 2006/04/06
- [Emacs-diffs] Changes to emacs/lisp/files.el, Eli Zaretskii, 2006/04/08
- [Emacs-diffs] Changes to emacs/lisp/files.el, Richard M. Stallman, 2006/04/11
- [Emacs-diffs] Changes to emacs/lisp/files.el,
Eli Zaretskii <=
- [Emacs-diffs] Changes to emacs/lisp/files.el, Richard M. Stallman, 2006/04/18
- [Emacs-diffs] Changes to emacs/lisp/files.el, Stefan Monnier, 2006/04/29