diff options
| author | Miles Bader | 2000-08-17 06:25:11 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-08-17 06:25:11 +0000 |
| commit | 9d245da59e738ffb9e13b801b4d01d5635c07ea7 (patch) | |
| tree | 6869455a0bfd4d7cfa74478d8d141c4a9a49e8eb | |
| parent | aae41d97a4501836c911c61cec82bbb6cf955327 (diff) | |
| download | emacs-9d245da59e738ffb9e13b801b4d01d5635c07ea7.tar.gz emacs-9d245da59e738ffb9e13b801b4d01d5635c07ea7.zip | |
Add compatibility definition of comint-line-beginning-position.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/octave-inf.el | 11 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1bed7c58ac5..3a795dbcf90 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-08-17 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/octave-inf.el: Add compatibility definition of | ||
| 4 | comint-line-beginning-position. | ||
| 5 | |||
| 1 | 2000-08-17 Kenichi Handa <handa@etl.go.jp> | 6 | 2000-08-17 Kenichi Handa <handa@etl.go.jp> |
| 2 | 7 | ||
| 3 | * startup.el (normal-top-level): Look in each dir in load-path for | 8 | * startup.el (normal-top-level): Look in each dir in load-path for |
| @@ -102,7 +107,7 @@ | |||
| 102 | 107 | ||
| 103 | 2000-08-16 Miles Bader <miles@gnu.org> | 108 | 2000-08-16 Miles Bader <miles@gnu.org> |
| 104 | 109 | ||
| 105 | * progmodes/sql.el: Add compatibility definition onf | 110 | * progmodes/sql.el: Add compatibility definition of |
| 106 | comint-line-beginning-position. | 111 | comint-line-beginning-position. |
| 107 | 112 | ||
| 108 | 2000-08-15 Gerd Moellmann <gerd@gnu.org> | 113 | 2000-08-15 Gerd Moellmann <gerd@gnu.org> |
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index 0dd6bf99eb9..dd26918e4e2 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el | |||
| @@ -93,6 +93,17 @@ mode, set this to (\"-q\" \"--traditional\")." | |||
| 93 | ;; Could certainly do more font locking in inferior Octave ... | 93 | ;; Could certainly do more font locking in inferior Octave ... |
| 94 | "Additional expressions to highlight in Inferior Octave mode.") | 94 | "Additional expressions to highlight in Inferior Octave mode.") |
| 95 | 95 | ||
| 96 | |||
| 97 | ;;; Compatibility functions | ||
| 98 | (if (not (fboundp 'comint-line-beginning-position)) | ||
| 99 | ;; comint-line-beginning-position is defined in Emacs 21 | ||
| 100 | (defun comint-line-beginning-position () | ||
| 101 | "Returns the buffer position of the beginning of the line, after any prompt. | ||
| 102 | The prompt is assumed to be any text at the beginning of the line matching | ||
| 103 | the regular expression `comint-prompt-regexp', a buffer local variable." | ||
| 104 | (save-excursion (comint-bol nil) (point)))) | ||
| 105 | |||
| 106 | |||
| 96 | (defvar inferior-octave-output-list nil) | 107 | (defvar inferior-octave-output-list nil) |
| 97 | (defvar inferior-octave-output-string nil) | 108 | (defvar inferior-octave-output-string nil) |
| 98 | (defvar inferior-octave-receive-in-progress nil) | 109 | (defvar inferior-octave-receive-in-progress nil) |