mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Clarify warning for process-dependent input in ERC
* lisp/erc/erc.el (erc--check-prompt-input-for-running-process): Resolve dissonance between content of ancient `user-error' message and condition that triggered it by favoring the former because it's supported by the underlying mechanism, which revolves around the `process-not-needed' symbol property. * test/lisp/erc/erc-tests.el (erc--check-prompt-input-functions): Revise expected output for error assertion. (Bug#66073, originally from bug#54536, and included for discussion in bug#67677)
This commit is contained in:
parent
4ee4865ce2
commit
11bae96d23
2 changed files with 15 additions and 6 deletions
|
|
@ -1414,9 +1414,9 @@
|
|||
(ert-info ("Input remains untouched")
|
||||
(should (save-excursion (erc-bol) (looking-at "/msg #chan hi")))))
|
||||
|
||||
(ert-info ("Errors when no process running")
|
||||
(ert-info ("Errors when server buffer absent")
|
||||
(let ((e (should-error (erc-send-current-line))))
|
||||
(should (equal "ERC: No process running" (cadr e))))
|
||||
(should (equal "Server buffer missing" (cadr e))))
|
||||
(ert-info ("Input remains untouched")
|
||||
(should (save-excursion (erc-bol) (looking-at "/msg #chan hi")))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue