aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-08-07 14:57:22 +0000
committerMiles Bader2000-08-07 14:57:22 +0000
commit69e773247b4fac5a7430f8446fe280b36850fb7a (patch)
tree918b55af4137f589f462621b1af851ef6eb9b6de
parent3250010dd7fbfc5d47c9ea6b22f3ebb87524c947 (diff)
downloademacs-69e773247b4fac5a7430f8446fe280b36850fb7a.tar.gz
emacs-69e773247b4fac5a7430f8446fe280b36850fb7a.zip
(try-expand-line, try-expand-line-all-buffers): Only use comint-prompt-regexp
if comint-use-prompt-regexp-instead-of-fields is non-nil.
-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
634string). It returns t if a new completion is found, nil otherwise." 634string). It returns t if a new completion is found, nil otherwise."
635 (let ((expansion ()) 635 (let ((expansion ())
636 (strip-prompt (and (get-buffer-process (current-buffer)) 636 (strip-prompt (and (get-buffer-process (current-buffer))
637 comint-use-prompt-regexp-instead-of-fields
637 comint-prompt-regexp))) 638 comint-prompt-regexp)))
638 (if (not old) 639 (if (not old)
639 (progn 640 (progn
@@ -680,6 +681,7 @@ for subsequent calls (for further possible completions of the same
680string). It returns t if a new completion is found, nil otherwise." 681string). It returns t if a new completion is found, nil otherwise."
681 (let ((expansion ()) 682 (let ((expansion ())
682 (strip-prompt (and (get-buffer-process (current-buffer)) 683 (strip-prompt (and (get-buffer-process (current-buffer))
684 comint-use-prompt-regexp-instead-of-fields
683 comint-prompt-regexp)) 685 comint-prompt-regexp))
684 (buf (current-buffer)) 686 (buf (current-buffer))
685 (orig-case-fold-search case-fold-search)) 687 (orig-case-fold-search case-fold-search))
@@ -706,6 +708,7 @@ string). It returns t if a new completion is found, nil otherwise."
706 (widen)) 708 (widen))
707 (goto-char he-search-loc) 709 (goto-char he-search-loc)
708 (setq strip-prompt (and (get-buffer-process (current-buffer)) 710 (setq strip-prompt (and (get-buffer-process (current-buffer))
711 comint-use-prompt-regexp-instead-of-fields
709 comint-prompt-regexp)) 712 comint-prompt-regexp))
710 (setq expansion 713 (setq expansion
711 (let ((case-fold-search orig-case-fold-search)) 714 (let ((case-fold-search orig-case-fold-search))