projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
321e1a6
)
Quieten defun-mh compilation
author
Glenn Morris
<rgm@gnu.org>
Thu, 1 Mar 2018 18:11:29 +0000
(13:11 -0500)
committer
Glenn Morris
<rgm@gnu.org>
Thu, 1 Mar 2018 18:11:29 +0000
(13:11 -0500)
* lisp/mh-e/mh-acros.el (defun-mh):
Rewrite so the compiler can see it always defines target function.
lisp/mh-e/mh-acros.el
patch
|
blob
|
history
diff --git
a/lisp/mh-e/mh-acros.el
b/lisp/mh-e/mh-acros.el
index ac31127ce64470a8459bc46da36544a88a699daa..fb8a16bd81d787b4205b9c905155908d80510d54 100644
(file)
--- a/
lisp/mh-e/mh-acros.el
+++ b/
lisp/mh-e/mh-acros.el
@@
-90,9
+90,10
@@
loads \"cl\" appropriately."
"Create function NAME.
If FUNCTION exists, then NAME becomes an alias for FUNCTION.
Otherwise, create function NAME with ARG-LIST and BODY."
- `(if (fboundp ',function)
- (defalias ',name ',function)
- (defun ,name ,arg-list ,@body)))
+ `(defalias ',name
+ (if (fboundp ',function)
+ ',function
+ (lambda ,arg-list ,@body))))
(put 'defun-mh 'lisp-indent-function 'defun)
(put 'defun-mh 'doc-string-elt 4)