mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-27
8e8b46ef81(origin/emacs-27) More accurate documentation of the "r" i...dcb2015a5bMention the GNU Kind Communications Guidelines in the FAQ9882e63eea; * CONTRIBUTE: Another wording change regarding tiny chan...850f18ef23Allow newlines in password prompts again in comintc977370dd7Avoid point movement when visiting image filesda64a257a4; * CONTRIBUTE: Yet another clarification of significant c...d03f2a6ee9Avoid assertion violation in callproc.cdcc00bbb19; * CONTRIBUTE: Clarify the "15-lines" rule a bit more.
This commit is contained in:
commit
1d50050af7
6 changed files with 29 additions and 9 deletions
|
|
@ -378,7 +378,7 @@ This variable is buffer-local."
|
|||
"\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)"
|
||||
"\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?"
|
||||
;; "[[:alpha:]]" used to be "for", which fails to match non-English.
|
||||
"\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:blank:]]*\\'")
|
||||
"\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:space:]]*\\'")
|
||||
"Regexp matching prompts for passwords in the inferior process.
|
||||
This is used by `comint-watch-for-password-prompt'."
|
||||
:version "27.1"
|
||||
|
|
@ -2432,6 +2432,8 @@ This function could be in the list `comint-output-filter-functions'."
|
|||
(replace-regexp-in-string "\r" "" string)))
|
||||
(when (string-match "^[ \n\r\t\v\f\b\a]+" string)
|
||||
(setq string (replace-match "" t t string)))
|
||||
(when (string-match "\n+\\'" string)
|
||||
(setq string (replace-match "" t t string)))
|
||||
(let ((comint--prompt-recursion-depth (1+ comint--prompt-recursion-depth)))
|
||||
(if (> comint--prompt-recursion-depth 10)
|
||||
(message "Password prompt recursion too deep")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue