From ae500c1a0fac8590a94cf063548433273378ad65 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 15 May 2008 03:30:40 +0000 Subject: [PATCH] (declare-function): Add compat definition. (awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler. --- lisp/progmodes/cc-mode.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2