mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/emacs-lisp/gv.el (error): Allow it as a place
This commit is contained in:
parent
071bfd9840
commit
485898c18b
1 changed files with 5 additions and 0 deletions
|
|
@ -504,6 +504,11 @@ The return value is the last VAL in the list.
|
|||
(funcall do `(funcall (car ,gv))
|
||||
(lambda (v) `(funcall (cdr ,gv) ,v))))))))
|
||||
|
||||
(put 'error 'gv-expander
|
||||
(lambda (do &rest args)
|
||||
(funcall do `(error . ,args)
|
||||
(lambda (v) `(progn ,v (error . ,args))))))
|
||||
|
||||
(defmacro gv-synthetic-place (getter setter)
|
||||
"Special place described by its setter and getter.
|
||||
GETTER and SETTER (typically obtained via `gv-letplace') get and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue