(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.
(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))))))