1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 15:50:40 -08:00
emacs/test/lisp
F. Jason Park c356f86b51 Update ISUPPORT handling in ERC
* lisp/erc/erc-backend (erc--isupport-params): Add new variable to
hold a hashmap of parsed `erc-server-parameters' in a more useful
format.  But keep `erc-server-parameters' around for public use.  We
currently lack dedicated local variables for certain discovered IRC
session properties, such as what prefix characters are supported for
channels, etc.  And the truth of this needs querying many times per
second at various points.  As such, caching here seems justified but
can be easily removed if deemed otherwise because all ingredients are
internal.
(erc--parse-isupport-value): Add helper function that parses an
ISUPPORT value and returns the component parts with backslash-x hex
escapes removed.  This can probably use some streamlining.
(erc--with-memoization): Add compat alias for use in internal ISUPPORT
getter.  Should be moved to `erc-compat.el' when that library is fully
reincorporated.
(erc--get-isupport-entry): Add internal getter to look up ISUPPORT
items.
(erc-server-005): Treat `erc-server-response' "command args" field as
read-only.  Previously, this field was set to nil after processing,
which was unhelpful to other parts of the library.  Also call above
mentioned helper to parse values.  And add some bookkeeping to handle
negation.

* lisp/erc/erc-capab.el (erc-capab-identify-send-messages): Use
internal ISUPPORT getter.

* lisp/erc/erc.el (erc-cmd-NICK, erc-parse-prefix,
erc-nickname-in-use): Use internal ISUPPORT getter.

* test/lisp/erc/erc-tests.el: Add tests for the above mentioned
changes in erc-backend.el.
2022-06-30 15:03:26 -07:00
..
align-resources Add some tests for align.el 2020-12-29 08:38:25 +01:00
bookmark-resources Add ability to mark/unmark/delete all bookmarks 2020-08-09 15:13:05 -05:00
calc Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
calendar icalendar-tests no longer assumes TZ = wall 2022-06-15 23:06:08 -05:00
cedet Fix misplaced interactive spec 2022-06-17 11:23:41 +02:00
custom-resources Avoid saving session customizations in the custom-file 2021-05-10 13:33:32 +02:00
dired-resources/insert-directory Change how Dired displays available space 2021-12-01 23:27:19 +01:00
emacs-lisp Make two text-property-search tests easier to read 2022-06-29 13:54:51 +02:00
emulation Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
epg-resources Move epg.el test data to follow our conventions 2020-10-24 02:36:55 +02:00
erc Update ISUPPORT handling in ERC 2022-06-30 15:03:26 -07:00
eshell When closing an Eshell process target, send EOF three times 2022-06-26 18:27:20 +02:00
faces-resources ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
files-resources * test/lisp/files-resources/compile-utf8.el: Use lexical-binding 2022-05-26 12:16:04 -04:00
gnus Tag an mml-sec test 2022-01-25 09:38:50 -08:00
hfy-cmap-resources * test/lisp/hfy-cmap-resources/rgb.txt: Add comment line. 2020-11-12 03:20:39 +01:00
image Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
international Recognise hybrid IPv6/IPv4 addresses in textsec (bug#54624) 2022-04-11 16:29:24 +02:00
loadhist-resources (function-history): New symbol property (bug#53632) 2022-01-31 11:07:26 -05:00
mail Fix undigest-tests on MS-Windows 2022-05-14 11:30:54 +03:00
mh-e ; Pacify unknown fun warning in mh-utils-tests.el. 2022-06-26 15:08:57 +03:00
minibuffer-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
net Fix Tramp test 2022-06-16 19:29:55 +02:00
nxml ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
obsolete Fix misplaced interactive spec 2022-06-17 11:23:41 +02:00
org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcmpl-linux-resources Use lexical-binding in pcmpl-linux.el and add tests 2020-09-02 12:53:02 +02:00
play ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
progmodes test/lisp/progmodes/python-tests.el: add test for nav end of block 2022-06-29 12:13:34 +02:00
saveplace-resources Use lexical-binding in saveplace.el and add tests 2020-08-08 01:40:38 +02:00
so-long-tests Merge from origin/emacs-28 2022-06-24 13:52:51 +02:00
term ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
textmodes Recognize some more SCSS selectors 2022-05-15 16:42:56 +02:00
time-resources Add missed file needed by time-tests.el 2020-10-22 18:51:00 +02:00
url Adapt url-tramp-tests 2022-06-20 15:45:46 +02:00
vc Speed up generation of loaddefs files 2022-05-31 18:08:33 +02:00
xdg-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
abbrev-tests.el Don't signal errors in abbrev-table-p 2022-02-14 12:00:22 +01:00
align-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
allout-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
allout-widgets-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ansi-color-tests.el ; Fix typos 2022-05-15 11:15:06 +02:00
apropos-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
arc-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
auth-source-pass-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
auth-source-tests.el Use 'auth-info-password' in tests 2022-01-10 20:52:20 -05:00
autoinsert-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
autorevert-tests.el Factor out test configuration for remote files 2022-06-08 12:06:56 +02:00
battery-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bookmark-tests.el Update bookmark tests for recent change 2022-06-17 20:08:55 +02:00
buff-menu-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
button-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
calculator-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
char-fold-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
color-tests.el Fix color-lighten-hsl logic 2022-03-22 15:28:02 +01:00
comint-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
completion-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cus-edit-tests.el Fix a compilation warning in cus-edit-tests.el 2022-02-20 19:17:49 +01:00
custom-tests.el Fix cl-generic bootstrap problems 2022-06-24 11:04:51 +02:00
dabbrev-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
delim-col-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
descr-text-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
desktop-tests.el Load desktop without prompting if process is dead 2022-03-24 09:23:31 +01:00
dired-aux-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dired-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dired-x-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dnd-tests.el Update dnd-tests.el to make sure remote files are removed when Emacs quits 2022-06-29 20:14:41 +08:00
dom-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edmacro-tests.el test/lisp/edmacro-tests.el: Adjust to recent changes 2022-04-04 09:55:03 -04:00
electric-tests.el Silence byte-compiler in two tests 2022-02-04 14:18:35 +01:00
elide-head-tests.el New minor mode elide-head-mode 2022-01-09 11:12:06 +01:00
epg-config-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
epg-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
faces-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ffap-tests.el Rename compare-window-configurations and update doc 2022-05-20 04:23:32 +02:00
filenotify-tests.el Factor out test configuration for remote files 2022-06-08 12:06:56 +02:00
files-tests.el Reinstate the Qload file name handler 2022-06-02 11:51:09 +02:00
files-x-tests.el Make application configurable in 'with-connection-local-variables' 2022-03-18 12:25:32 +01:00
find-cmd-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
font-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
format-spec-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
help-fns-tests.el Fix describe-function-1 test failure from previous change 2022-02-08 08:15:08 +01:00
help-mode-tests.el Allow using xref buttons in non-*Help* buffers 2022-06-06 16:12:39 +02:00
help-tests.el Don't error out on invalid literal key substitutions 2022-06-25 12:25:58 +02:00
hfy-cmap-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
hi-lock-tests.el Fix thinko in previous hi-lock-read-face-name change 2022-01-20 14:53:12 +01:00
hl-line-tests.el Fix hl-line tests 2022-03-23 20:25:33 +08:00
htmlfontify-tests.el Don't generate separate autoload file for htmlfontify 2022-06-05 18:23:17 +02:00
ibuffer-tests.el Adjust ibuffer test 2022-06-15 18:36:58 +02:00
ido-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
image-dired-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
image-file-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
image-tests.el Fix failing image test on nox builds 2022-05-01 01:19:51 +03:00
imenu-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
info-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
info-xref-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
isearch-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
jit-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
json-tests.el Allow plist-get/plist-put/plist-member to take a comparison function 2022-06-27 12:22:05 +02:00
jsonrpc-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
kmacro-tests.el kmacro: Represent it as an OClosure 2022-04-01 20:07:33 -04:00
loadhist-tests.el (function-history): New symbol property (bug#53632) 2022-01-31 11:07:26 -05:00
lpr-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ls-lisp-tests.el Fix sorting in ls-lisp.el under -v 2022-06-05 09:52:09 +03:00
makesum-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
man-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
md4-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
minibuffer-tests.el * lisp/simple.el (completion-auto-wrap): Rename from completion-wrap-movement. 2022-06-14 10:04:56 +03:00
misc-tests.el duplicate-line: fix optional argument and add test (bug#46621) 2022-06-22 16:03:46 +02:00
mouse-tests.el Fix handling double-click-time nil or t 2022-05-02 12:03:08 +02:00
mwheel-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newcomment-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
obarray-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
paren-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
password-cache-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcmpl-linux-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ps-print-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
register-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
repeat-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
replace-tests.el * test/lisp/replace-tests.el (query-replace-tests): Add more tests (bug#54733) 2022-04-29 20:40:15 +03:00
rot13-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
saveplace-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
scroll-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ses-tests.el ses-test Prefix used symbols by ses-- 2022-04-10 00:26:33 +02:00
shadowfile-tests.el Factor out test configuration for remote files 2022-06-08 12:06:56 +02:00
shell-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
simple-tests.el zap-to-char: case sensitive for upper-case characters 2022-05-21 11:23:55 +02:00
sort-tests.el Make some recently added tests actually run 2022-05-03 22:30:39 +02:00
soundex-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
startup-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
subr-tests.el Add new type predicate plistp 2022-06-27 12:36:37 +02:00
tab-bar-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tabify-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tar-mode-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tempo-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
term-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
thingatpt-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
thread-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
thumbs-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
time-stamp-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
time-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
timezone-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
version-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
wdired-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
whitespace-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
wid-edit-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
x-dnd-tests.el Add tests for x-dnd Motif value parsing logic 2022-06-10 13:11:20 +08:00
xdg-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
xml-tests.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
xt-mouse-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
yank-media-tests.el Fix yank-media utf-16 detection 2022-02-05 08:50:05 +01:00