summaryrefslogtreecommitdiff
path: root/lisp/hippie-exp.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-08-07 14:57:22 +0000
committerMiles Bader <miles@gnu.org>2000-08-07 14:57:22 +0000
commit5e97b277763d4106994bc5d3acb4be6f2684ad9c (patch)
treece12b4dc70f216d8c3db5e77665a62b5669054ef /lisp/hippie-exp.el
parentd642b7d1aab47bcd9208d40b080aef8cf2518126 (diff)
downloademacs-5e97b277763d4106994bc5d3acb4be6f2684ad9c.tar.gz
(try-expand-line, try-expand-line-all-buffers): Only use comint-prompt-regexp
if comint-use-prompt-regexp-instead-of-fields is non-nil.
Diffstat (limited to 'lisp/hippie-exp.el')
-rw-r--r--lisp/hippie-exp.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/hippie-exp.el b/lisp/hippie-exp.el
index 747b5d6a61d..830f6480322 100644
--- a/lisp/hippie-exp.el
+++ b/lisp/hippie-exp.el
@@ -634,6 +634,7 @@ for subsequent calls (for further possible completions of the same
string). It returns t if a new completion is found, nil otherwise."
(let ((expansion ())
(strip-prompt (and (get-buffer-process (current-buffer))
+ comint-use-prompt-regexp-instead-of-fields
comint-prompt-regexp)))
(if (not old)
(progn
@@ -680,6 +681,7 @@ for subsequent calls (for further possible completions of the same
string). It returns t if a new completion is found, nil otherwise."
(let ((expansion ())
(strip-prompt (and (get-buffer-process (current-buffer))
+ comint-use-prompt-regexp-instead-of-fields
comint-prompt-regexp))
(buf (current-buffer))
(orig-case-fold-search case-fold-search))
@@ -706,6 +708,7 @@ string). It returns t if a new completion is found, nil otherwise."
(widen))
(goto-char he-search-loc)
(setq strip-prompt (and (get-buffer-process (current-buffer))
+ comint-use-prompt-regexp-instead-of-fields
comint-prompt-regexp))
(setq expansion
(let ((case-fold-search orig-case-fold-search))