diff options
| author | Glenn Morris | 2018-03-01 13:11:29 -0500 |
|---|---|---|
| committer | Glenn Morris | 2018-03-01 13:11:29 -0500 |
| commit | da185080290e5f3c9bc589a6ebb87e136894a020 (patch) | |
| tree | 1d99e8f3afe281861070cb38431ce9cfa2d6da1a | |
| parent | 321e1a61e12bfb24554e0795a57fe77b49706635 (diff) | |
| download | emacs-da185080290e5f3c9bc589a6ebb87e136894a020.tar.gz emacs-da185080290e5f3c9bc589a6ebb87e136894a020.zip | |
Quieten defun-mh compilation
* lisp/mh-e/mh-acros.el (defun-mh):
Rewrite so the compiler can see it always defines target function.
| -rw-r--r-- | lisp/mh-e/mh-acros.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el index ac31127ce64..fb8a16bd81d 100644 --- a/lisp/mh-e/mh-acros.el +++ b/lisp/mh-e/mh-acros.el | |||
| @@ -90,9 +90,10 @@ loads \"cl\" appropriately." | |||
| 90 | "Create function NAME. | 90 | "Create function NAME. |
| 91 | If FUNCTION exists, then NAME becomes an alias for FUNCTION. | 91 | If FUNCTION exists, then NAME becomes an alias for FUNCTION. |
| 92 | Otherwise, create function NAME with ARG-LIST and BODY." | 92 | Otherwise, create function NAME with ARG-LIST and BODY." |
| 93 | `(if (fboundp ',function) | 93 | `(defalias ',name |
| 94 | (defalias ',name ',function) | 94 | (if (fboundp ',function) |
| 95 | (defun ,name ,arg-list ,@body))) | 95 | ',function |
| 96 | (lambda ,arg-list ,@body)))) | ||
| 96 | (put 'defun-mh 'lisp-indent-function 'defun) | 97 | (put 'defun-mh 'lisp-indent-function 'defun) |
| 97 | (put 'defun-mh 'doc-string-elt 4) | 98 | (put 'defun-mh 'doc-string-elt 4) |
| 98 | 99 | ||