]> git.eshelyaron.com Git - emacs.git/commit
Limit the amount of text we examine when looking for password prompts
authorJim Porter <jporterbugs@gmail.com>
Sat, 15 Jun 2024 18:03:33 +0000 (11:03 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:01:14 +0000 (21:01 +0200)
commitaada192458bf4f7ffcc469bc461c62413242489a
treea3ddd653e49789b73a0e736b8a21610d1b306209
parentf307ce787af430bd05d907074f87cd8b26a5ff01
Limit the amount of text we examine when looking for password prompts

Both Comint and Eshell do this, and it can significantly slow down
commands that write a lot of output (bug#71576).

* lisp/comint.el (comint-password-prompt-max-length): New variable...
(comint-watch-for-password-prompt): ... use it.  Additionally, use the
matched result for the Emacs-based password prompt.

* lisp/eshell/esh-mode.el (eshell-password-prompt-max-length): New
variable...
(eshell-watch-for-password-prompt): ... use it.

* etc/NEWS: Announce this change.

(cherry picked from commit 1a55e957ae57ec32ae960eabdb170b5b427392d4)
etc/NEWS
lisp/comint.el
lisp/eshell/esh-mode.el