+2000-08-17 Miles Bader <miles@gnu.org>
+
+ * progmodes/octave-inf.el: Add compatibility definition of
+ comint-line-beginning-position.
+
2000-08-17 Kenichi Handa <handa@etl.go.jp>
* startup.el (normal-top-level): Look in each dir in load-path for
2000-08-16 Miles Bader <miles@gnu.org>
- * progmodes/sql.el: Add compatibility definition onf
+ * progmodes/sql.el: Add compatibility definition of
comint-line-beginning-position.
2000-08-15 Gerd Moellmann <gerd@gnu.org>
;; Could certainly do more font locking in inferior Octave ...
"Additional expressions to highlight in Inferior Octave mode.")
+
+;;; Compatibility functions
+(if (not (fboundp 'comint-line-beginning-position))
+ ;; comint-line-beginning-position is defined in Emacs 21
+ (defun comint-line-beginning-position ()
+ "Returns the buffer position of the beginning of the line, after any prompt.
+The prompt is assumed to be any text at the beginning of the line matching
+the regular expression `comint-prompt-regexp', a buffer local variable."
+ (save-excursion (comint-bol nil) (point))))
+
+
(defvar inferior-octave-output-list nil)
(defvar inferior-octave-output-string nil)
(defvar inferior-octave-receive-in-progress nil)