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
0ee35e51
Commit
0ee35e51
authored
Oct 23, 2008
by
Glenn Morris
Browse files
(flet): Throw an error when trying to byte-compile a redefinition of a
function with special byte-compile handling. (Bug#411)
parent
91236f63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-macs.el
+8
-4
No files found.
lisp/ChangeLog
View file @
0ee35e51
2008-10-23 Glenn Morris <rgm@gnu.org>
* emacs-lisp/cl-macs.el (flet): Throw an error when trying to
byte-compile a redefinition of a function with special byte-compile
handling. (Bug#411)
2008-10-22 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2008-10-22 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* ps-print.el: Deal with page sizes for label printes. Suggested by
* ps-print.el: Deal with page sizes for label printes. Suggested by
...
...
lisp/emacs-lisp/cl-macs.el
View file @
0ee35e51
...
@@ -1328,10 +1328,14 @@ go back to their previous definitions, or lack thereof).
...
@@ -1328,10 +1328,14 @@ go back to their previous definitions, or lack thereof).
(
let
((
func
(
list
'function*
(
let
((
func
(
list
'function*
(
list
'lambda
(
cadr
x
)
(
list
'lambda
(
cadr
x
)
(
list*
'block
(
car
x
)
(
cddr
x
))))))
(
list*
'block
(
car
x
)
(
cddr
x
))))))
(
if
(
and
(
cl-compiling-file
)
(
when
(
cl-compiling-file
)
(
boundp
'byte-compile-function-environment
))
;; Bug#411. It would be nice to fix this.
(
push
(
cons
(
car
x
)
(
eval
func
))
(
and
(
get
(
car
x
)
'byte-compile
)
byte-compile-function-environment
))
(
error
"
Byte-compiling
a
redefinition
of
`
%s
'
\
will
not
work
-
use
`
labels
'
instead
" (symbol-name (car x))))
(and (boundp 'byte-compile-function-environment)
(push (cons (car x) (eval func))
byte-compile-function-environment)))
(list (list 'symbol-function (list 'quote (car x))) func))))
(list (list 'symbol-function (list 'quote (car x))) func))))
bindings)
bindings)
body))
body))
...
...
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