summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2007-12-03 00:33:06 +0000
committerRichard M. Stallman <rms@gnu.org>2007-12-03 00:33:06 +0000
commite9fa6d0a4c565561c028b226237cdc58032da6e4 (patch)
tree54643110621ddd33986d61bc66b20f329a1f274b /lisp/emacs-lisp/byte-run.el
parent18715c3318e416cdf27a2f8dd4619afec98ac84a (diff)
downloademacs-e9fa6d0a4c565561c028b226237cdc58032da6e4.tar.gz
(declare-function): Macro deleted.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
-rw-r--r--lisp/emacs-lisp/byte-run.el37
1 files changed, 0 insertions, 37 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 6a5458df30f..267173c1713 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -103,43 +103,6 @@ The return value of this function is not used."
(eval-and-compile
(put ',name 'byte-optimizer 'byte-compile-inline-expand))))
-(defmacro declare-function (fn file &optional arglist fileonly)
- "Tell the byte-compiler that function FN is defined, in FILE.
-Optional ARGLIST is the argument list used by the function. The
-FILE argument is not used by the byte-compiler, but by the
-`check-declare' package, which checks that FILE contains a
-definition for FN. ARGLIST is used by both the byte-compiler and
-`check-declare' to check for consistency.
-
-FILE can be either a Lisp file (in which case the \".el\"
-extension is optional), or a C file. C files are expanded
-relative to the Emacs \"src/\" directory. Lisp files are
-searched for using `locate-library', and if that fails they are
-expanded relative to the location of the file containing the
-declaration. A FILE with an \"ext:\" prefix is an external file.
-`check-declare' will check such files if they are found, and skip
-them without error if they are not.
-
-FILEONLY non-nil means that `check-declare' will only check that
-FILE exists, not that it defines FN. This is intended for
-function-definitions that `check-declare' does not recognize, e.g.
-`defstruct'.
-
-To specify a value for FILEONLY without passing an argument list,
-set ARGLIST to `t'. This is necessary because `nil' means an
-empty argument list, rather than an unspecified one.
-
-Note that for the purposes of `check-declare', this statement
-must be the first non-whitespace on a line, and everything up to
-the end of FILE must be all on the same line. For example:
-
-\(declare-function c-end-of-defun \"progmodes/cc-cmds.el\"
- \(&optional arg))
-
-For more information, see Info node `elisp(Declaring Functions)'."
- ;; Does nothing - byte-compile-declare-function does the work.
- nil)
-
(defun make-obsolete (obsolete-name current-name &optional when)
"Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
The warning will say that CURRENT-NAME should be used instead.