summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2003-04-20 13:03:04 +0000
committerGlenn Morris <rgm@gnu.org>2003-04-20 13:03:04 +0000
commitbe35ca9f5ee2e215506f7a9c729ef59978c0036c (patch)
tree6d850084045c2c310f67de746bc97e4fcf118e60
parent7aee804746bb816e0595c06743e16a6100e4c59d (diff)
downloademacs-be35ca9f5ee2e215506f7a9c729ef59978c0036c.tar.gz
emacs-be35ca9f5ee2e215506f7a9c729ef59978c0036c.tar.bz2
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 @@
;; * Support any other extensions to f77 grokked by GNU Fortran I've missed.
(eval-when-compile ; silence compiler
+ (defvar dabbrev-case-fold-search)
(defvar imenu-case-fold-search)
(defvar imenu-syntax-alist))
@@ -773,13 +774,17 @@ With non-nil ARG, uncomments the region."
"Typing ;\\[help-command] or ;? lists all the Fortran abbrevs.
Any other key combination is executed normally."
(interactive "*")
- (let (c)
- (insert last-command-char)
- (if (and abbrev-mode
- (or (eq (setq c (read-event)) ??) ; insert char if not `?'
- (eq c help-char)))
+ (insert last-command-char)
+ (let (char event)
+ (if (fboundp 'next-command-event) ; XEmacs
+ (setq event (next-command-event)
+ char (event-to-character event))
+ (setq event (read-event)
+ char event))
+ ;; Insert char if not equal to `?', or if abbrev-mode is off.
+ (if (and abbrev-mode (or (eq char ??) (eq char help-char)))
(fortran-abbrev-help)
- (setq unread-command-events (list c)))))
+ (setq unread-command-events (list event)))))
(defun fortran-abbrev-help ()
"List the currently defined abbrevs in Fortran mode."