summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-05-27 18:16:24 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-05-27 18:17:04 -0700
commit66cd9187e396abfa7220d6a8f8d1a7064ef20b1e (patch)
tree3a67532755b6302dcd6fee3b6f420ed3c3851646 /lisp/emacs-lisp
parent4ce68f8f0f1dd1aa518e6e682b2c2cef1f49d953 (diff)
downloademacs-66cd9187e396abfa7220d6a8f8d1a7064ef20b1e.tar.gz
emacs-66cd9187e396abfa7220d6a8f8d1a7064ef20b1e.tar.bz2
emacs-66cd9187e396abfa7220d6a8f8d1a7064ef20b1e.zip
Don’t document declare-function internals
Suggested by Stefan Monnier in: http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00618.html * doc/lispref/functions.texi (Declaring Functions): * lisp/subr.el (declare-function): * lisp/emacs-lisp/bytecomp.el: (byte-compile-macroexpand-declare-function): Document as (fn file &optional arglist fileonly) even though it is really (fn file &rest args).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 11eb44cea31..dc7574e778d 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2959,6 +2959,8 @@ for symbols generated by the byte compiler itself."
;; Special macro-expander used during byte-compilation.
(defun byte-compile-macroexpand-declare-function (fn file &rest args)
+ (declare (advertised-calling-convention
+ (fn file &optional arglist fileonly) nil))
(let ((gotargs (and (consp args) (listp (car args))))
(unresolved (assq fn byte-compile-unresolved-functions)))
(when unresolved ; function was called before declaration