diff options
author | Karl Heuer <kwzh@gnu.org> | 1998-12-10 03:15:25 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1998-12-10 03:15:25 +0000 |
commit | aa82f4fbdfc5cef6a24777b9909a82cab44fea9c (patch) | |
tree | 7fee2a2aead0ecde5b0860bb55392c6335a60d5d /lisp | |
parent | cbef32957480afdb921763a3365637eef3b8824d (diff) | |
download | emacs-aa82f4fbdfc5cef6a24777b9909a82cab44fea9c.tar.gz emacs-aa82f4fbdfc5cef6a24777b9909a82cab44fea9c.tar.bz2 emacs-aa82f4fbdfc5cef6a24777b9909a82cab44fea9c.zip |
(octave-abbrev-start): Use the correct
name of the abbrev table, and provide support for XEmacs.
(octave-xemacs-p): New variable.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/octave-mod.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index f97b595b62d..2b95c85b415 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el @@ -626,6 +626,9 @@ the end keyword." (delete-horizontal-space) (insert (concat " " octave-continuation-string)))) +(defvar octave-xemacs-p + (string-match "XEmacs\\|Lucid" emacs-version)) + ;;; Comments (defun octave-comment-region (beg end &optional arg) "Comment or uncomment each line in the region as Octave code. @@ -1337,9 +1340,12 @@ Note that all Octave mode abbrevs start with a grave accent." (self-insert-command 1) (let (c) (insert last-command-char) - (if (or (eq (setq c (read-event)) ??) - (eq c help-char)) - (let ((abbrev-table-name-list '(octave-mode-abbrev-table))) + (if (if octave-xemacs-p + (or (eq (event-to-character (setq c (next-event))) ??) + (eq (event-to-character c) help-char)) + (or (eq (setq c (read-event)) ??) + (eq c help-char))) + (let ((abbrev-table-name-list '(octave-abbrev-table))) (list-abbrevs)) (setq unread-command-events (list c)))))) |