1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 16:20:17 -08:00
emacs/lisp/erc
F. Jason Park 3bf4ea9543 Reserve erc-normalize-port for equality comparisons
* etc/ERC-NEWS: Add entry explaining changes to entry point 'erc-tls'
and library functions `erc-normalize-port' and `erc-compute-port'.
* lisp/erc/erc.el (erc-normalize-port): Map "ircu" to 6665 instead of
6667, and add related IANA service mappings.  Return 0 for unknown
nonempty strings.
(erc-open): Pass `erc-session-port' through `erc-string-to-port' before
handing it to `erc-server-connect'.  This prevents the network machinery
from ever seeing a numeric string, like "6667".
(erc-select-read-args): Since `erc-compute-port' no longer relies on
`erc-normalize-port', ensure its input is a number.  Use
`erc-port-equal' instead of `eql'.
(erc-tls): Respect a configured non-nil `erc-port' option when the user
does not provide a :port keyword argument from Lisp code.
(erc-determine-parameters): Use `erc-compute-port' for initializing
`erc-session-port'.
(erc-compute-port): Don't pass the result through `erc-normalize-port',
which can convert it to an unintuitive form.
(erc--url-default-connect-function): Use `erc-compute-port' instead of
`erc-normalize-port'.
(erc-handle-irc-url): Use `erc-port-equal' for comparison.
* test/lisp/erc/erc-scenarios-auth-source.el
(erc-scenarios-common--auth-source): Allow tests to convey the automatic
port number to `erc-open' via `erc-port'.
(erc-scenarios-base-auth-source-server--dialed): Use `erc-port' option
instead of passing a :port parameter to entry-point command.
* test/lisp/erc/erc-tests.el (erc-normalize-port): New test.
(Bug#74516)
2024-12-01 10:56:08 -08:00
..
ChangeLog.1 ; Fix typos 2024-06-16 22:38:26 +02:00
ChangeLog.2 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-autoaway.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-backend.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-button.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-capab.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-common.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-compat.el Use erc-compat analog for window-no-other-p 2024-10-11 16:13:09 -07:00
erc-dcc.el Checkdoc fixes in erc/*.el 2024-07-08 16:41:02 +02:00
erc-desktop-notifications.el Port more notification senders to non-XDG systems 2024-03-13 11:01:39 +08:00
erc-ezbounce.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-fill.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-goodies.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-ibuffer.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-identd.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-imenu.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-join.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-lang.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-list.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-log.el Don't start docstrings with "This function" 2024-11-01 23:56:12 +01:00
erc-match.el ; Undo erroneous change in ERC's sample configuration 2024-10-18 18:37:57 -07:00
erc-menu.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-netsplit.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-networks.el Use helper to get erc-networks--id symbol as string 2024-11-15 11:26:07 -08:00
erc-nicks.el Use helper to get erc-networks--id symbol as string 2024-11-15 11:26:07 -08:00
erc-notify.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-page.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-pcomplete.el Improve inconsistent handling of ban lists in ERC 2024-09-29 16:43:30 -07:00
erc-replace.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-ring.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-sasl.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-services.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-sound.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-speedbar.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-spelling.el Fix customization type of erc-spelling-dictionaries 2024-11-15 11:27:10 -08:00
erc-stamp.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-status-sidebar.el Use helper to get erc-networks--id symbol as string 2024-11-15 11:26:07 -08:00
erc-track.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-truncate.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
erc-xdcc.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc.el Reserve erc-normalize-port for equality comparisons 2024-12-01 10:56:08 -08:00