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
39cb42c6
Commit
39cb42c6
authored
Dec 16, 2013
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/gv.el (gv-ref): Mention lexbind restriction.
Fixes: debbugs:16153
parent
2f43a3ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
lisp/ChangeLog
lisp/ChangeLog
+6
-2
lisp/emacs-lisp/gv.el
lisp/emacs-lisp/gv.el
+4
-1
No files found.
lisp/ChangeLog
View file @
39cb42c6
2013-12-16 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/gv.el (gv-ref): Mention lexbind restriction (bug#16153).
2013-12-16 Teodor Zlatanov <tzz@lifelogs.com>
* progmodes/cfengine.el (cfengine3--current-word): Remove.
...
...
@@ -9,8 +13,8 @@
2013-12-16 Martin Rudalics <rudalics@gmx.at>
* window.el (display-buffer-below-selected):
Bind
split-height-threshold to 0 as suggested by Juri Linkov.
* window.el (display-buffer-below-selected):
Bind
split-height-threshold to 0 as suggested by Juri Linkov.
2013-12-16 Leo Liu <sdl.web@gmail.com>
...
...
lisp/emacs-lisp/gv.el
View file @
39cb42c6
...
...
@@ -454,7 +454,10 @@ The return value is the last VAL in the list.
;;;###autoload
(
defmacro
gv-ref
(
place
)
"Return a reference to PLACE.
This is like the `&' operator of the C language."
This is like the `&' operator of the C language.
Note: this only works reliably with lexical binding mode, except for very
simple PLACEs such as (function-symbol 'foo) which will also work in dynamic
binding mode."
(
gv-letplace
(
getter
setter
)
place
`
(
cons
(
lambda
()
,
getter
)
(
lambda
(
gv--val
)
,
(
funcall
setter
'gv--val
)))))
...
...
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