aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-08-07 14:58:44 +0000
committerMiles Bader2000-08-07 14:58:44 +0000
commit502166d288cfe6982a6386fda20ce1ed862f860a (patch)
tree879b1afa872e68b41c4330d0cd35a13a2b988619
parent69e773247b4fac5a7430f8446fe280b36850fb7a (diff)
downloademacs-502166d288cfe6982a6386fda20ce1ed862f860a.tar.gz
emacs-502166d288cfe6982a6386fda20ce1ed862f860a.zip
(inferior-octave-complete): Use comint-line-beginning-position.
-rw-r--r--lisp/progmodes/octave-inf.el9
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
243is NOT available with versions of Octave prior to 2.0." 243is 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