Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a9a5c7f6
Commit
a9a5c7f6
authored
Nov 08, 2012
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/gv.el (gv-deref): Move setter declaration, to fix bootstrap.
parent
784c1a7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/emacs-lisp/gv.el
lisp/emacs-lisp/gv.el
+4
-1
No files found.
lisp/emacs-lisp/gv.el
View file @
a9a5c7f6
...
...
@@ -447,8 +447,11 @@ This is like the `&' operator of the C language."
"Dereference REF, returning the referenced value.
This is like the `*' operator of the C language.
REF must have been previously obtained with `gv-ref'."
(
declare
(
gv-setter
(
lambda
(
v
)
`
(
funcall
(
cdr
,
ref
)
,
v
))))
(funcall (car ref)))
;; Don't use `declare' because it seems to introduce circularity problems:
;; Warning: Eager macro-expansion skipped due to cycle:
;; … => (load "gv.el") => (macroexpand-all (defsubst gv-deref …)) => (macroexpand (defun …)) => (load "gv.el")
(gv-define-setter gv-deref (v ref) `(funcall (cdr ,ref) ,v))
;;; Vaguely related definitions that should be moved elsewhere.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment