1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
emacs/lisp/erc
F. Jason Park a63ed6f78a Remove duplicate ERC prompt on reconnect
* lisp/erc/erc-backend.el (erc--unhide-prompt, erc--hide-prompt,
erc--unhide-prompt-on-self-insert): Add functions to ensure prompt is
hidden on disconnect and shown when a user types /reconnect in a
disconnected server buffer.
(erc-process-sentinel): Register aforementioned function with
`pre-command-hook' when prompt is deleted after disconnecting.
(erc-server-PRIVMSG): Ensure prompt is showing when a new message
arrives from target.

* lisp/erc/erc.el (erc-hide-prompt): Repurpose unused option by
changing meaning slightly to mean "selectively hide prompt when
disconnected."  Also delete obsolete, commented-out code that at some
point used this option in its prior incarnation.
(erc-prompt-hidden): Add new option to specify look of prompt when
hidden.
(erc-unhide-query-prompt): Add option to force-reveal query prompts on
reconnect.
(erc-open): Augment earlier reconnect-detection semantics by
incorporating `erc--server-reconnecting'.  In existing buffers, remove
prompt-related hooks and reveal prompt, if necessary.
(erc-cmd-RECONNECT): Allow a user to reconnect when already
connected (by first disconnecting).
(erc-connection-established): Possibly unhide query prompts.
(Bug#54826)

* test/lisp/erc/erc-tests.el (erc-tests--test-prep,
erc-tests--set-fake-server-process): Factor out some common
buffer-prep boilerplate involving user input and the server process.
Shared with bug#54536.
2022-06-30 15:03:26 -07:00
..
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ChangeLog.2 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
erc-autoaway.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-backend.el Remove duplicate ERC prompt on reconnect 2022-06-30 15:03:26 -07:00
erc-button.el Make recent nicknames erc change more backwards-compatible 2022-05-11 15:02:08 +02:00
erc-capab.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-compat.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-dcc.el Recognize DCC SSEND when receiving files in erc-dcc 2022-05-22 18:04:52 -07:00
erc-desktop-notifications.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-ezbounce.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-fill.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-goodies.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-ibuffer.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-identd.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-imenu.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-join.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-lang.el Rename Oriya to Odia, and more 2022-05-19 15:23:46 +03:00
erc-list.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-log.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-match.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-menu.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-netsplit.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-networks.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-notify.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-page.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-pcomplete.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-replace.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-ring.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-services.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-sound.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-speedbar.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-spelling.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-stamp.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-status-sidebar.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-track.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-truncate.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-xdcc.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc.el Remove duplicate ERC prompt on reconnect 2022-06-30 15:03:26 -07:00