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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5046ef67
Commit
5046ef67
authored
Oct 13, 2012
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.
parent
8336c6b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/gv.el
lisp/emacs-lisp/gv.el
+2
-1
No files found.
lisp/ChangeLog
View file @
5046ef67
2012-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.
2012-10-13 Chong Yidong <cyd@gnu.org>
* textmodes/ispell.el (ispell-pdict-save): If flyspell-mode is
...
...
lisp/emacs-lisp/gv.el
View file @
5046ef67
...
...
@@ -358,7 +358,8 @@ The return value is the last VAL in the list.
(
put
'if
'gv-expander
(
lambda
(
do
test
then
&rest
else
)
(
if
(
macroexp-small-p
(
funcall
do
'dummy
(
lambda
(
_
)
'dummy
)))
(
if
(
or
(
not
lexical-binding
)
;The other code requires lexical-binding.
(
macroexp-small-p
(
funcall
do
'dummy
(
lambda
(
_
)
'dummy
))))
;; This duplicates the `do' code, which is a problem if that
;; code is large, but otherwise results in more efficient code.
`
(
if
,
test
,
(
gv-get
then
do
)
...
...
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