# HG changeset patch # User Glenn Morris # Date 1210822240 0 # Node ID 3f4cdd18353657d8ff7b23473a095ce9a1dfbb10 # Parent 81e2fa8a82443245aa771255c6524dcfd1970a63 (declare-function): Add compat definition. (awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler. diff -r 81e2fa8a8244 -r 3f4cdd183536 lisp/progmodes/cc-mode.el --- a/lisp/progmodes/cc-mode.el Thu May 15 03:29:30 2008 +0000 +++ b/lisp/progmodes/cc-mode.el Thu May 15 03:30:40 2008 +0000 @@ -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 @@ (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