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
0b46acbf
Commit
0b46acbf
authored
Nov 21, 2004
by
Richard M. Stallman
Browse files
(byte-compile-form): Move the calls to byte-compile-set-symbol-position,
to avoid having two for the same symbol occurrence.
parent
9961365e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/bytecomp.el
+15
-12
No files found.
lisp/emacs-lisp/bytecomp.el
View file @
0b46acbf
...
...
@@ -2714,17 +2714,18 @@ If FORM is a lambda or a macro, byte-compile it as a function."
(
defun
byte-compile-form
(
form
&optional
for-effect
)
(
setq
form
(
macroexpand
form
byte-compile-macro-environment
))
(
cond
((
not
(
consp
form
))
(
cond
((
or
(
not
(
symbolp
form
))
(
byte-compile-const-symbol-p
form
))
(
when
(
symbolp
form
)
(
byte-compile-set-symbol-position
form
))
(
cond
((
or
(
not
(
symbolp
form
))
(
byte-compile-const-symbol-p
form
))
(
byte-compile-constant
form
))
((
and
for-effect
byte-compile-delete-errors
)
(
when
(
symbolp
form
)
(
byte-compile-set-symbol-position
form
))
(
setq
for-effect
nil
))
(
t
(
byte-compile-variable-ref
'byte-varref
form
))))
((
symbolp
(
car
form
))
(
let*
((
fn
(
car
form
))
(
handler
(
get
fn
'byte-compile
)))
(
byte-compile-set-symbol-position
fn
)
(
when
(
byte-compile-const-symbol-p
fn
)
(
byte-compile-warn
"`%s' called as a function"
fn
))
(
and
(
memq
'interactive-only
byte-compile-warnings
)
...
...
@@ -2735,7 +2736,9 @@ That command is designed for interactive use only" fn))
(or (not (byte-compile-version-cond
byte-compile-compatibility))
(not (get (get fn 'byte-opcode) 'emacs19-opcode))))
(funcall handler form)
(progn
(byte-compile-set-symbol-position fn)
(funcall handler form))
(if (memq 'callargs byte-compile-warnings)
(byte-compile-callargs-warn form))
(byte-compile-normal-call form))
...
...
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