diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-10-18 13:28:20 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-10-18 13:28:20 -0400 |
commit | a8c41b4c0d3b0a3e87f17bbcdd8ac12dae296b3a (patch) | |
tree | 0e70199c085f112c0deb3d369db6bd737f7d04d2 /lisp/emacs-lisp | |
parent | 5419963b85522629c972baba98c7e2cfef4bb014 (diff) | |
download | emacs-a8c41b4c0d3b0a3e87f17bbcdd8ac12dae296b3a.tar.gz emacs-a8c41b4c0d3b0a3e87f17bbcdd8ac12dae296b3a.tar.bz2 emacs-a8c41b4c0d3b0a3e87f17bbcdd8ac12dae296b3a.zip |
Don't allow functions that display messages in unsafep.
* emacs-lisp/unsafep.el: Don't mark functions that display
messages as safe. Suggested by Johan Bockgård.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/unsafep.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/unsafep.el b/lisp/emacs-lisp/unsafep.el index 851a1f7652b..a62f8de4010 100644 --- a/lisp/emacs-lisp/unsafep.el +++ b/lisp/emacs-lisp/unsafep.el @@ -101,15 +101,13 @@ in the parse.") (dolist (x '(;;Special forms and catch if or prog1 prog2 progn while unwind-protect ;;Safe subrs that have some side-effects - ding error message minibuffer-message random read-minibuffer - signal sleep-for string-match throw y-or-n-p yes-or-no-p + ding error random signal sleep-for string-match throw ;;Defsubst functions from subr.el caar cadr cdar cddr ;;Macros from subr.el - save-match-data unless when with-temp-message + save-match-data unless when ;;Functions from subr.el that have side effects - read-passwd split-string replace-regexp-in-string - play-sound-file)) + split-string replace-regexp-in-string play-sound-file)) (put x 'safe-function t)) ;;;###autoload |