diff options
| author | Karl Heuer | 1998-12-10 03:15:25 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-12-10 03:15:25 +0000 |
| commit | aa82f4fbdfc5cef6a24777b9909a82cab44fea9c (patch) | |
| tree | 7fee2a2aead0ecde5b0860bb55392c6335a60d5d | |
| parent | cbef32957480afdb921763a3365637eef3b8824d (diff) | |
| download | emacs-aa82f4fbdfc5cef6a24777b9909a82cab44fea9c.tar.gz emacs-aa82f4fbdfc5cef6a24777b9909a82cab44fea9c.zip | |
(octave-abbrev-start): Use the correct
name of the abbrev table, and provide support for XEmacs.
(octave-xemacs-p): New variable.
| -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." | |||
| 626 | (delete-horizontal-space) | 626 | (delete-horizontal-space) |
| 627 | (insert (concat " " octave-continuation-string)))) | 627 | (insert (concat " " octave-continuation-string)))) |
| 628 | 628 | ||
| 629 | (defvar octave-xemacs-p | ||
| 630 | (string-match "XEmacs\\|Lucid" emacs-version)) | ||
| 631 | |||
| 629 | ;;; Comments | 632 | ;;; Comments |
| 630 | (defun octave-comment-region (beg end &optional arg) | 633 | (defun octave-comment-region (beg end &optional arg) |
| 631 | "Comment or uncomment each line in the region as Octave code. | 634 | "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." | |||
| 1337 | (self-insert-command 1) | 1340 | (self-insert-command 1) |
| 1338 | (let (c) | 1341 | (let (c) |
| 1339 | (insert last-command-char) | 1342 | (insert last-command-char) |
| 1340 | (if (or (eq (setq c (read-event)) ??) | 1343 | (if (if octave-xemacs-p |
| 1341 | (eq c help-char)) | 1344 | (or (eq (event-to-character (setq c (next-event))) ??) |
| 1342 | (let ((abbrev-table-name-list '(octave-mode-abbrev-table))) | 1345 | (eq (event-to-character c) help-char)) |
| 1346 | (or (eq (setq c (read-event)) ??) | ||
| 1347 | (eq c help-char))) | ||
| 1348 | (let ((abbrev-table-name-list '(octave-abbrev-table))) | ||
| 1343 | (list-abbrevs)) | 1349 | (list-abbrevs)) |
| 1344 | (setq unread-command-events (list c)))))) | 1350 | (setq unread-command-events (list c)))))) |
| 1345 | 1351 | ||