Quieten defun-mh compilation
* lisp/mh-e/mh-acros.el (defun-mh): Rewrite so the compiler can see it always defines target function.
This commit is contained in:
parent
321e1a61e1
commit
da18508029
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue