changeset 39562:9c9bba5b5bad

(frame-parameter): Add a setf method. (ignore-errors): Don't bother using a `err' symbol.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 05 Oct 2001 09:30:23 +0000
parents 0881eab13b7a
children 925776635a57
files lisp/emacs-lisp/cl-macs.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/cl-macs.el	Fri Oct 05 09:29:51 2001 +0000
+++ b/lisp/emacs-lisp/cl-macs.el	Fri Oct 05 09:30:23 2001 +0000
@@ -1587,6 +1587,7 @@
 (defsetf frame-parameters modify-frame-parameters t)
 (defsetf frame-visible-p cl-set-frame-visible-p)
 (defsetf frame-width set-screen-width t)
+(defsetf frame-parameter set-frame-parameter)
 (defsetf getenv setenv t)
 (defsetf get-register set-register)
 (defsetf global-key-binding global-set-key)
@@ -2313,8 +2314,7 @@
 (defmacro ignore-errors (&rest body)
   "Execute FORMS; if an error occurs, return nil.
 Otherwise, return result of last FORM."
-  (let ((err (gensym)))
-    (list 'condition-case err (cons 'progn body) '(error nil))))
+  `(condition-case nil (progn ,@body) (error nil)))
 
 
 ;;; Some predicates for analyzing Lisp forms.  These are used by various