mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
gv.el and cl-macs.el: Fix bug#57397
* lisp/emacs-lisp/gv.el (gv-get): Obey symbol macros. * lisp/emacs-lisp/cl-macs.el (cl--letf): Remove workaround placed to try and handle symbol macros. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-test--symbol-macrolet): Add new testcase.
This commit is contained in:
parent
1d1158397b
commit
2dd1c2ab19
3 changed files with 20 additions and 3 deletions
|
|
@ -87,7 +87,11 @@ with a (not necessarily copyable) Elisp expression that returns the value to
|
|||
set it to.
|
||||
DO must return an Elisp expression."
|
||||
(cond
|
||||
((symbolp place) (funcall do place (lambda (v) `(setq ,place ,v))))
|
||||
((symbolp place)
|
||||
(let ((me (macroexpand-1 place macroexpand-all-environment)))
|
||||
(if (eq me place)
|
||||
(funcall do place (lambda (v) `(setq ,place ,v)))
|
||||
(gv-get me do))))
|
||||
((not (consp place)) (signal 'gv-invalid-place (list place)))
|
||||
(t
|
||||
(let* ((head (car place))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue