aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2003-04-20 13:03:04 +0000
committerGlenn Morris2003-04-20 13:03:04 +0000
commitbe35ca9f5ee2e215506f7a9c729ef59978c0036c (patch)
tree6d850084045c2c310f67de746bc97e4fcf118e60
parent7aee804746bb816e0595c06743e16a6100e4c59d (diff)
downloademacs-be35ca9f5ee2e215506f7a9c729ef59978c0036c.tar.gz
emacs-be35ca9f5ee2e215506f7a9c729ef59978c0036c.zip
(dabbrev-case-fold-search): Add defvar for compiler.
(fortran-abbrev-start): Make XEmacs compatible.
-rw-r--r--lisp/progmodes/fortran.el17
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 654477c247e..5badcfb1efa 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -54,6 +54,7 @@
54;; * Support any other extensions to f77 grokked by GNU Fortran I've missed. 54;; * Support any other extensions to f77 grokked by GNU Fortran I've missed.
55 55
56(eval-when-compile ; silence compiler 56(eval-when-compile ; silence compiler
57 (defvar dabbrev-case-fold-search)
57 (defvar imenu-case-fold-search) 58 (defvar imenu-case-fold-search)
58 (defvar imenu-syntax-alist)) 59 (defvar imenu-syntax-alist))
59 60
@@ -773,13 +774,17 @@ With non-nil ARG, uncomments the region."
773 "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs. 774 "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs.
774Any other key combination is executed normally." 775Any other key combination is executed normally."
775 (interactive "*") 776 (interactive "*")
776 (let (c) 777 (insert last-command-char)
777 (insert last-command-char) 778 (let (char event)
778 (if (and abbrev-mode 779 (if (fboundp 'next-command-event) ; XEmacs
779 (or (eq (setq c (read-event)) ??) ; insert char if not `?' 780 (setq event (next-command-event)
780 (eq c help-char))) 781 char (event-to-character event))
782 (setq event (read-event)
783 char event))
784 ;; Insert char if not equal to `?', or if abbrev-mode is off.
785 (if (and abbrev-mode (or (eq char ??) (eq char help-char)))
781 (fortran-abbrev-help) 786 (fortran-abbrev-help)
782 (setq unread-command-events (list c))))) 787 (setq unread-command-events (list event)))))
783 788
784(defun fortran-abbrev-help () 789(defun fortran-abbrev-help ()
785 "List the currently defined abbrevs in Fortran mode." 790 "List the currently defined abbrevs in Fortran mode."