1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 21:50:45 -08:00
emacs/lisp/erc
F. Jason Park f109396fe3 Prefer erc-target to erc-default-target
* etc/ERC-NEWS: Mention `erc-target' and new `erc-server-buffer-p'
alias.
* lisp/erc/erc-backend.el (erc-process-sentinel): Set `joined-p' slot
of `erc--target-channel' object to nil when applicable.
(erc-server-JOIN): Mark `erc--target-channel' object as being joined.
* lisp/erc/erc-common.el (erc--target-channel): Add `joined-p' slot.
Use hyphenated name so accessor function's name ends in "joined-p"
rather than "joinedp".  Note that this will always be nil when
disconnected.
(erc--target): Relocate here from erc.el.
(erc-target): New public API function to return the current buffer's
target as a string, even in channels that have been unjoined.
* lisp/erc/erc-networks.el (erc--default-target): Remove forward
declaration.
(erc-networks--id-reload): Use `erc-target' instead of
`erc--default-target' as predicate for visiting target buffers.
* lisp/erc/erc.el (erc-remove-channel-users): Set channel "joinedness"
to nil in `erc--target-channel' object, when applicable.
(erc--target): Move to erc-common.
(erc--default-target): Remove, replaced by new function `erc-target'.
(erc-query-buffer-p): Use `erc-target'.
(erc-after-connect): Revise doc string.
(erc-connection-established): Revise doc string and move
`erc-unhide-query-prompt' business before hook.
(erc--current-buffer-joined-p): Remove comment and use new `joined-p'
slot of `erc--target-channel' for determining "joinedness" of channel.
(erc-kill-buffer-function): Use `erc--target-channel-p' for detecting
whether the buffer is a channel buffer.
* test/lisp/erc/erc-networks-tests.el
(erc-networks--shrink-ids-and-buffer-names--hook-collapse-target):
Remove comment.
* test/lisp/erc/erc-scenarios-base-reuse-buffers.el
(erc-scenarios-common--base-reuse-buffers-channel-buffers):
Clarify assertion.
* test/lisp/erc/erc-tests.el (erc-with-all-buffers-of-server):
Replace `erc-default-recipients' with `erc--target'.
(erc--target-from-string): Update expected shape of
`erc--target-channel' struct with new `joined-p' slot.
(erc-message): Set `erc--target' in buffer "#chan".  (Bug#66578)
2023-10-20 15:24:06 -07:00
..
ChangeLog.1
ChangeLog.2
erc-autoaway.el
erc-backend.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-button.el Spoof channel users in erc-button--phantom-users-mode 2023-09-17 16:17:59 -07:00
erc-capab.el
erc-common.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-compat.el Prefer ticks/hz pairs for some ERC timestamps on 29+ 2023-10-02 17:31:28 -07:00
erc-dcc.el Fix command-line parsing regression in erc-cmd-DCC 2023-07-13 18:45:31 -07:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el Restore missing metadata props in erc-display-line 2023-10-20 14:53:24 -07:00
erc-goodies.el More defcustom fixes in ERC (Bug#66520) 2023-10-13 07:47:01 -07:00
erc-ibuffer.el Fix wrong "User" column count in erc-ibuffer 2023-10-02 17:23:29 -07:00
erc-identd.el
erc-imenu.el
erc-join.el Allow custom display-buffer actions in ERC 2023-07-13 18:45:31 -07:00
erc-lang.el
erc-list.el
erc-log.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-match.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-menu.el
erc-netsplit.el
erc-networks.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-nicks.el ; Prefer HTTPS to HTTP in more links 2023-08-02 23:32:28 +02:00
erc-notify.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-page.el
erc-pcomplete.el
erc-replace.el
erc-ring.el
erc-sasl.el
erc-services.el Redo erc-nickname-in-use-functions as a local module 2023-07-01 07:21:30 -07:00
erc-sound.el
erc-speedbar.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-spelling.el
erc-stamp.el Respect user markers in erc-insert-timestamp-left 2023-10-20 14:53:24 -07:00
erc-status-sidebar.el Simplify multi-frame behavior in erc-bufbar-mode 2023-07-28 16:39:04 -07:00
erc-track.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-truncate.el Manage some text props for ERC insertion-hook members 2023-10-13 07:47:01 -07:00
erc-xdcc.el
erc.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00