diff options
| author | Miles Bader | 2000-08-07 14:58:44 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-08-07 14:58:44 +0000 |
| commit | 502166d288cfe6982a6386fda20ce1ed862f860a (patch) | |
| tree | 879b1afa872e68b41c4330d0cd35a13a2b988619 | |
| parent | 69e773247b4fac5a7430f8446fe280b36850fb7a (diff) | |
| download | emacs-502166d288cfe6982a6386fda20ce1ed862f860a.tar.gz emacs-502166d288cfe6982a6386fda20ce1ed862f860a.zip | |
(inferior-octave-complete): Use comint-line-beginning-position.
| -rw-r--r-- | lisp/progmodes/octave-inf.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index aa3e8a2c134..0dd6bf99eb9 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el | |||
| @@ -243,11 +243,10 @@ This is implemented using the Octave command `completion_matches' which | |||
| 243 | is NOT available with versions of Octave prior to 2.0." | 243 | is NOT available with versions of Octave prior to 2.0." |
| 244 | (interactive) | 244 | (interactive) |
| 245 | (let* ((end (point)) | 245 | (let* ((end (point)) |
| 246 | (command (save-excursion | 246 | (command |
| 247 | (skip-syntax-backward "w_") | 247 | (save-excursion |
| 248 | (and (looking-at comint-prompt-regexp) | 248 | (skip-syntax-backward "w_" (comint-line-beginning-position)) |
| 249 | (goto-char (match-end 0))) | 249 | (buffer-substring-no-properties (point) end))) |
| 250 | (buffer-substring-no-properties (point) end))) | ||
| 251 | (proc (get-buffer-process inferior-octave-buffer)) | 250 | (proc (get-buffer-process inferior-octave-buffer)) |
| 252 | (filter (process-filter proc))) | 251 | (filter (process-filter proc))) |
| 253 | (cond (inferior-octave-complete-impossible | 252 | (cond (inferior-octave-complete-impossible |