]> git.eshelyaron.com Git - emacs.git/commitdiff
(declare-function): Add compatibility stub.
authorGlenn Morris <rgm@gnu.org>
Sat, 17 Jan 2009 20:02:41 +0000 (20:02 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 17 Jan 2009 20:02:41 +0000 (20:02 +0000)
(delete-duplicates, mapcan, cl-macroexpand-all): Declare.

lisp/ChangeLog
lisp/progmodes/cc-langs.el

index e28ac1d0a8a0d95dcfb7b6c1985b957859c02208..e7a847d8069c21f46e370e9adfa5db9a61d72e9c 100644 (file)
@@ -1,3 +1,12 @@
+2009-01-17  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/cc-langs.el (declare-function): Add compatibility stub.
+       (delete-duplicates, mapcan, cl-macroexpand-all): Declare.
+
+       * emacs-lisp/eldoc.el (eldoc-minor-mode-string)
+       (eldoc-message-commands, eldoc-print-current-symbol-info):
+       Doc fix (consistent case of "ElDoc").
+
 2009-01-17  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
 
        * textmodes/bibtex.el (bibtex-format-entry): Simplify previous
index 3b6ed904eed0921e641085316958647e10220478..fc3dfde58eebe3a6ad15ded2ef8f88eb42e74457 100644 (file)
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
 (eval-when-compile
   (let ((load-path
         (if (and (boundp 'byte-compile-dest-file)
@@ -204,6 +208,12 @@ the evaluated constant value at compile time."
 (def-edebug-spec c-lang-defvar
   (&define name def-form &optional stringp)) ;)
 
+;; Suppress "might not be defined at runtime" warning.
+;; This file is only used when compiling other cc files.
+(declare-function delete-duplicates "cl-seq" (cl-seq &rest cl-keys))
+(declare-function mapcan "cl-extra" (cl-func cl-seq &rest cl-rest))
+(declare-function cl-macroexpand-all "cl-extra" (form &optional env))
+
 (eval-and-compile
   ;; Some helper functions used when building the language constants.