changeset 112191:bc72195ae573

* lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.
author Johan Bockgård <bojohan@gnu.org>
date Tue, 11 Jan 2011 19:42:30 +0100
parents 0bfc36865094
children 3dff252e42ea
files lisp/ChangeLog lisp/emacs-lisp/unsafep.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Jan 11 00:07:32 2011 -0500
+++ b/lisp/ChangeLog	Tue Jan 11 19:42:30 2011 +0100
@@ -1,3 +1,7 @@
+2011-01-11  Johan Bockgård  <bojohan@gnu.org>
+
+	* emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.
+
 2011-01-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* progmodes/prolog.el: Fix up coding convention and such.
--- a/lisp/emacs-lisp/unsafep.el	Tue Jan 11 00:07:32 2011 -0500
+++ b/lisp/emacs-lisp/unsafep.el	Tue Jan 11 19:42:30 2011 +0100
@@ -202,6 +202,9 @@
 	      (dolist (x (nthcdr 3 form))
 		(setq reason (unsafep-progn (cdr x)))
 		(if reason (throw 'unsafep reason))))))
+       ((eq fun '\`)
+	;; Backquoted form - safe if its expansion is.
+	(unsafep (cdr (backquote-process (cadr form)))))
        (t
 	;;First unsafep-function call above wasn't nil, no special case applies
 	reason)))))