aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2024-12-02 19:21:54 +0100
committerMichael Albinus2024-12-02 19:21:54 +0100
commite618d5ae941d005e9da6d5d5cba68cc0ecade0e5 (patch)
tree976f2bf20a44790272c2fd4c512f8ec772b8d026
parentf65de1019dca6398097751abefcad7e1a4637551 (diff)
downloademacs-e618d5ae941d005e9da6d5d5cba68cc0ecade0e5.tar.gz
emacs-e618d5ae941d005e9da6d5d5cba68cc0ecade0e5.zip
Fix password prompt in comint (don't merge)
* lisp/comint.el (comint-watch-for-password-prompt): Use whole string for setting the prompt. (Bug#74626)
-rw-r--r--lisp/comint.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 8860b3edb11..d52090911b9 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2573,8 +2573,7 @@ This function could be in the list `comint-output-filter-functions'."
2573 (when (let ((case-fold-search t)) 2573 (when (let ((case-fold-search t))
2574 (string-match comint-password-prompt-regexp 2574 (string-match comint-password-prompt-regexp
2575 (string-replace "\r" "" string))) 2575 (string-replace "\r" "" string)))
2576 (setq prompt (string-trim (match-string 0 string) 2576 (setq prompt (string-trim string "[ \n\r\t\v\f\b\a]+" "\n+"))
2577 "[ \n\r\t\v\f\b\a]+" "\n+"))
2578 ;; Use `run-at-time' in order not to pause execution of the 2577 ;; Use `run-at-time' in order not to pause execution of the
2579 ;; process filter with a minibuffer 2578 ;; process filter with a minibuffer
2580 (run-at-time 2579 (run-at-time