diff options
| author | F. Jason Park | 2023-05-04 00:01:11 -0700 |
|---|---|---|
| committer | F. Jason Park | 2023-07-13 18:45:31 -0700 |
| commit | 08515350faff03e4206e7ed4dfacffc55a4779cd (patch) | |
| tree | 48ac364cb0bf976271b7f1ce8835e7da27e86cbb | |
| parent | ded35c2da4da52641ec99927347cd50b736b9577 (diff) | |
| download | emacs-08515350faff03e4206e7ed4dfacffc55a4779cd.tar.gz emacs-08515350faff03e4206e7ed4dfacffc55a4779cd.zip | |
Add mini modules bufbar and nickbar to ERC
* doc/misc/erc.texi: Add `bufbar' and `nickbar' to known modules.
Also add `keep-place', which was missing, and remove `bbdb', which is
not part of ERC. Add new section "Auxiliary Modules" for listing
experimental modules or those typically managed by some other feature.
* erc/ERC-NEWS: Mention new mini modules for libraries
erc-status-sidebar.el and erc-speedbar.el.
* lisp/erc/erc.el (erc-modules): Add `bufbar' and `nickbar' to
selection of offered modules.
* test/lisp/erc/erc-tests.el (erc-tests--modules): Add `bufbar' and
`nickbar'. (Bug#63595)
| -rw-r--r-- | doc/misc/erc.texi | 43 | ||||
| -rw-r--r-- | etc/ERC-NEWS | 16 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 2 | ||||
| -rw-r--r-- | test/lisp/erc/erc-tests.el | 4 |
4 files changed, 60 insertions, 5 deletions
diff --git a/doc/misc/erc.texi b/doc/misc/erc.texi index 52a1d57fd45..d59c6d8a6c6 100644 --- a/doc/misc/erc.texi +++ b/doc/misc/erc.texi | |||
| @@ -414,9 +414,10 @@ Set away status automatically | |||
| 414 | @item autojoin | 414 | @item autojoin |
| 415 | Join channels automatically | 415 | Join channels automatically |
| 416 | 416 | ||
| 417 | @cindex modules, bbdb | 417 | @cindex modules, bufbar |
| 418 | @item bbdb | 418 | @item bufbar |
| 419 | Integrate with the Big Brother Database | 419 | List buffers belonging to a connection in a side window; part of |
| 420 | Custom group @code{erc-status-sidebar} | ||
| 420 | 421 | ||
| 421 | @cindex modules, button | 422 | @cindex modules, button |
| 422 | @item button | 423 | @item button |
| @@ -443,6 +444,10 @@ Launch an identd server on port 8113 | |||
| 443 | @item irccontrols | 444 | @item irccontrols |
| 444 | Highlight or remove IRC control characters | 445 | Highlight or remove IRC control characters |
| 445 | 446 | ||
| 447 | @cindex modules, keep-place | ||
| 448 | @item keep-place | ||
| 449 | Remember your position in buffers | ||
| 450 | |||
| 446 | @cindex modules, log | 451 | @cindex modules, log |
| 447 | @item log | 452 | @item log |
| 448 | Save buffers in logs | 453 | Save buffers in logs |
| @@ -463,6 +468,11 @@ Detect netsplits | |||
| 463 | @item nicks | 468 | @item nicks |
| 464 | Automatically colorize nicks | 469 | Automatically colorize nicks |
| 465 | 470 | ||
| 471 | @cindex modules, nickbar | ||
| 472 | @item nickbar | ||
| 473 | List participating nicks for the current target buffer in a side | ||
| 474 | window; part of Custom group @code{erc-speedbar} | ||
| 475 | |||
| 466 | @cindex modules, noncommands | 476 | @cindex modules, noncommands |
| 467 | @item noncommands | 477 | @item noncommands |
| 468 | Don't display non-IRC commands after evaluation | 478 | Don't display non-IRC commands after evaluation |
| @@ -534,6 +544,33 @@ Translate morse code in messages | |||
| 534 | 544 | ||
| 535 | @end table | 545 | @end table |
| 536 | 546 | ||
| 547 | @anchor{Auxiliary Modules} | ||
| 548 | @subheading Auxiliary Modules | ||
| 549 | @cindex auxiliary modules | ||
| 550 | |||
| 551 | For various reasons, the following modules aren't currently listed in | ||
| 552 | the Custom interface for @code{erc-modules}, but feel free to add them | ||
| 553 | explicitly. They may be managed by another module or considered more | ||
| 554 | useful when toggled interactively or just deemed experimental. | ||
| 555 | |||
| 556 | @table @code | ||
| 557 | |||
| 558 | @cindex modules, fill-wrap | ||
| 559 | @item fill-wrap | ||
| 560 | Wrap long lines using @code{visual-line-mode} | ||
| 561 | |||
| 562 | @cindex modules, keep-place-indicator | ||
| 563 | @item keep-place-indicator | ||
| 564 | Remember your place in buffers with a visible reminder; activated | ||
| 565 | interactively or via something like @code{erc-join-hook} | ||
| 566 | |||
| 567 | @cindex modules, services-regain | ||
| 568 | @item services-regain | ||
| 569 | Automatically ask NickServ to reclaim your nick when reconnecting; | ||
| 570 | experimental as of ERC 5.6 | ||
| 571 | |||
| 572 | @end table | ||
| 573 | |||
| 537 | @anchor{Required Modules} | 574 | @anchor{Required Modules} |
| 538 | @subheading Required Modules | 575 | @subheading Required Modules |
| 539 | @cindex required modules | 576 | @cindex required modules |
diff --git a/etc/ERC-NEWS b/etc/ERC-NEWS index fde4c64c32d..65fee9e05cd 100644 --- a/etc/ERC-NEWS +++ b/etc/ERC-NEWS | |||
| @@ -84,6 +84,22 @@ widget has been an age-old annoyance for new users. Previously | |||
| 84 | ineffective, this method now actually works, but it also admonishes | 84 | ineffective, this method now actually works, but it also admonishes |
| 85 | users to edit the 'erc-modules' widget instead. | 85 | users to edit the 'erc-modules' widget instead. |
| 86 | 86 | ||
| 87 | ** ERC's status-sidebar has gained an accompanying module. | ||
| 88 | Users can now add 'bufbar' to 'erc-modules' to achieve the same effect | ||
| 89 | as toggling 'erc-status-sidebar-open' manually at the start of an IRC | ||
| 90 | session. The module has also been outfitted to show channels and | ||
| 91 | queries under their respective servers by default. To avoid | ||
| 92 | confusion, the major mode used for the sidebar buffer itself, | ||
| 93 | 'erc-status-sidebar-mode', is no longer available interactively. | ||
| 94 | |||
| 95 | ** A new spin on a classic integration in erc-speedbar. | ||
| 96 | Add 'nickbar' to 'erc-modules' to spawn a dynamically updating side | ||
| 97 | window listing all the users in any target buffer. It's powered by | ||
| 98 | the same speedbar.el integration you've always known, except this | ||
| 99 | one's optionally accessible from the keyboard, just like any other | ||
| 100 | side window. Hit '<RET>' over a nick to spawn a "/QUERY" or a | ||
| 101 | "Lastlog" (Occur) session. See 'erc-nickbar-mode' for more. | ||
| 102 | |||
| 87 | ** The option 'erc-timestamp-use-align-to' is more versatile. | 103 | ** The option 'erc-timestamp-use-align-to' is more versatile. |
| 88 | While this option has always offered to right-align stamps via the | 104 | While this option has always offered to right-align stamps via the |
| 89 | 'display' text property, it's now more effective at doing so when set | 105 | 'display' text property, it's now more effective at doing so when set |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 07c62c935c3..03c21059a92 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -2046,6 +2046,7 @@ removed from the list will be disabled." | |||
| 2046 | :greedy t | 2046 | :greedy t |
| 2047 | (const :tag "autoaway: Set away status automatically" autoaway) | 2047 | (const :tag "autoaway: Set away status automatically" autoaway) |
| 2048 | (const :tag "autojoin: Join channels automatically" autojoin) | 2048 | (const :tag "autojoin: Join channels automatically" autojoin) |
| 2049 | (const :tag "bufbar: Show ERC buffers in a side window" bufbar) | ||
| 2049 | (const :tag "button: Buttonize URLs, nicknames, and other text" button) | 2050 | (const :tag "button: Buttonize URLs, nicknames, and other text" button) |
| 2050 | (const :tag "capab: Mark unidentified users on servers supporting CAPAB" | 2051 | (const :tag "capab: Mark unidentified users on servers supporting CAPAB" |
| 2051 | capab-identify) | 2052 | capab-identify) |
| @@ -2066,6 +2067,7 @@ removed from the list will be disabled." | |||
| 2066 | move-to-prompt) | 2067 | move-to-prompt) |
| 2067 | (const :tag "netsplit: Detect netsplits" netsplit) | 2068 | (const :tag "netsplit: Detect netsplits" netsplit) |
| 2068 | (const :tag "networks: Provide data about IRC networks" networks) | 2069 | (const :tag "networks: Provide data about IRC networks" networks) |
| 2070 | (const :tag "nickbar: Show nicknames in a dyamic side window" nickbar) | ||
| 2069 | (const :tag "nicks: Uniquely colorize nicknames in target buffers" nicks) | 2071 | (const :tag "nicks: Uniquely colorize nicknames in target buffers" nicks) |
| 2070 | (const :tag "noncommands: Don't display non-IRC commands after evaluation" | 2072 | (const :tag "noncommands: Don't display non-IRC commands after evaluation" |
| 2071 | noncommands) | 2073 | noncommands) |
diff --git a/test/lisp/erc/erc-tests.el b/test/lisp/erc/erc-tests.el index cc69641fb0b..b5db5fe8764 100644 --- a/test/lisp/erc/erc-tests.el +++ b/test/lisp/erc/erc-tests.el | |||
| @@ -1951,9 +1951,9 @@ | |||
| 1951 | (kill-buffer "#chan"))) | 1951 | (kill-buffer "#chan"))) |
| 1952 | 1952 | ||
| 1953 | (defconst erc-tests--modules | 1953 | (defconst erc-tests--modules |
| 1954 | '( autoaway autojoin button capab-identify completion dcc fill identd | 1954 | '( autoaway autojoin bufbar button capab-identify completion dcc fill identd |
| 1955 | imenu irccontrols keep-place list log match menu move-to-prompt netsplit | 1955 | imenu irccontrols keep-place list log match menu move-to-prompt netsplit |
| 1956 | networks nicks noncommands notifications notify page readonly | 1956 | networks nickbar nicks noncommands notifications notify page readonly |
| 1957 | replace ring sasl scrolltobottom services smiley sound | 1957 | replace ring sasl scrolltobottom services smiley sound |
| 1958 | spelling stamp track truncate unmorse xdcc)) | 1958 | spelling stamp track truncate unmorse xdcc)) |
| 1959 | 1959 | ||