comparison lisp/progmodes/cc-mode.el @ 94998:3f4cdd183536

(declare-function): Add compat definition. (awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler.
author Glenn Morris <rgm@gnu.org>
date Thu, 15 May 2008 03:30:40 +0000
parents 52b7a8c22af5
children ff495ec3a6a8
comparison
equal deleted inserted replaced
94997:81e2fa8a8244 94998:3f4cdd183536
71 ;; visiting 71 ;; visiting
72 ;; 72 ;;
73 ;; http://lists.sourceforge.net/mailman/listinfo/cc-mode-announce 73 ;; http://lists.sourceforge.net/mailman/listinfo/cc-mode-announce
74 74
75 ;;; Code: 75 ;;; Code:
76
77 ;; For Emacs < 22.2.
78 (eval-and-compile
79 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
76 80
77 (eval-when-compile 81 (eval-when-compile
78 (let ((load-path 82 (let ((load-path
79 (if (and (boundp 'byte-compile-dest-file) 83 (if (and (boundp 'byte-compile-dest-file)
80 (stringp byte-compile-dest-file)) 84 (stringp byte-compile-dest-file))
1451 (define-key awk-mode-map "\C-\M-a" 'c-awk-beginning-of-defun) 1455 (define-key awk-mode-map "\C-\M-a" 'c-awk-beginning-of-defun)
1452 (define-key awk-mode-map "\C-\M-e" 'c-awk-end-of-defun)) 1456 (define-key awk-mode-map "\C-\M-e" 'c-awk-end-of-defun))
1453 1457
1454 (easy-menu-define c-awk-menu awk-mode-map "AWK Mode Commands" 1458 (easy-menu-define c-awk-menu awk-mode-map "AWK Mode Commands"
1455 (cons "AWK" (c-lang-const c-mode-menu awk))) 1459 (cons "AWK" (c-lang-const c-mode-menu awk)))
1460
1461 ;; (require 'cc-awk) brings these in.
1462 (defvar awk-mode-syntax-table)
1463 (declare-function c-awk-unstick-NL-prop "cc-awk" ())
1456 1464
1457 (defun awk-mode () 1465 (defun awk-mode ()
1458 "Major mode for editing AWK code. 1466 "Major mode for editing AWK code.
1459 To submit a problem report, enter `\\[c-submit-bug-report]' from an 1467 To submit a problem report, enter `\\[c-submit-bug-report]' from an
1460 awk-mode buffer. This automatically sets up a mail buffer with version 1468 awk-mode buffer. This automatically sets up a mail buffer with version