From: Glenn Morris Date: Thu, 15 May 2008 03:30:40 +0000 (+0000) Subject: (declare-function): Add compat definition. X-Git-Tag: emacs-pretest-23.0.90~5515 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae500c1a0fac8590a94cf063548433273378ad65;p=emacs.git (declare-function): Add compat definition. (awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler. --- diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index bfdbdf4d9e1..a80564a81d1 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -74,6 +74,10 @@ ;;; 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) @@ -1454,6 +1458,10 @@ Key bindings: (easy-menu-define c-awk-menu awk-mode-map "AWK Mode Commands" (cons "AWK" (c-lang-const c-mode-menu awk))) +;; (require 'cc-awk) brings these in. +(defvar awk-mode-syntax-table) +(declare-function c-awk-unstick-NL-prop "cc-awk" ()) + (defun awk-mode () "Major mode for editing AWK code. To submit a problem report, enter `\\[c-submit-bug-report]' from an