1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
emacs/test/lisp
Eric Abrahamsen c1b63af445 Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.

* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
  Remove functions.
  (gnus-make-hashtable): Change to return a real hash table.
  (gnus-text-property-search): Utility similar to `text-property-any',
  but compares on `equal'. Needed because the 'gnus-group text
  property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
  Remove macros.
  (gnus-group-list): New variable holding all group names as an
  ordered list. Used because `gnus-newsrc-hashtb' used to preserve
  `gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
  alist.
  (nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
  of Gnus obarrays, replace with a cond that can handle many different
  possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
  gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
  of ident strings in gnus-backlog-articles.
  (gnus-backlog-setup): Delete unnecessary function.
  (gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
  gnus-backlog-remove-article, gnus-backlog-request-article): Alter
  calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
  `gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
  gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
  names as strings.
  (gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
  the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
  and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
  `mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
  gnus-headers-loop-dependencies): New tests to make sure we're
  building `gnus-newsgroup-dependencies' correctly.
2019-03-22 10:23:30 -07:00
..
calc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
calendar Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-resources New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
emacs-lisp New seq-contains-p predicate (Bug#34852) 2019-03-21 21:08:28 +01:00
emulation Update copyright year to 2019 2019-01-01 01:01:13 +00:00
erc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eshell Update more copyright years 2018-12-31 18:47:22 -08:00
gnus Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
international Import Unicode 12.0 data files 2019-03-09 12:41:48 +02:00
mail Update copyright year to 2019 2019-01-01 01:01:13 +00:00
net Fix Bug#24394, Bug#34172 2019-03-22 14:38:06 +01:00
org Update copyright year to 2019 2019-01-01 01:01:13 +00:00
progmodes Fix more regular expression typos 2019-03-18 17:02:29 -07:00
textmodes * test/lisp/textmodes/conf-mode-tests.el (conf-test-align-assignments): 2019-02-15 17:16:06 -05:00
url Update more copyright years 2018-12-31 18:47:22 -08:00
vc Fix diff-mode tests after renaming diff-font-lock-refine 2019-03-04 19:43:25 +01:00
abbrev-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
arc-mode-tests.el * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) 2019-02-03 23:00:29 +02:00
auth-source-pass-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
auth-source-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
autorevert-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
buff-menu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
char-fold-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
color-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
comint-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-tests.el New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
dabbrev-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
descr-text-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dired-aux-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-x-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dom-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
electric-tests.el electric-layout-mode kicks in before electric-pair-mode 2019-01-22 16:42:43 +00:00
epg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
faces-tests.el Fix bug with face-id after restoring from pdump 2019-01-28 17:24:04 +02:00
ffap-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
filenotify-tests.el Fix problem in filenotify-tests 2019-01-30 15:30:04 +01:00
files-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
files-x-tests.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
help-fns-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hi-lock-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
htmlfontify-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ibuffer-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ido-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
imenu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
info-xref-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
isearch-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
jit-lock-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
json-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
jsonrpc-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
kmacro-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ls-lisp-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
man-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
md4-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
minibuffer-tests.el * test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test 2019-03-20 10:52:30 -04:00
mouse-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
obarray-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ps-print-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
register-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
replace-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rot13-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ses-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
shadowfile-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
shell-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
simple-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sort-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
soundex-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
subr-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tar-mode-tests.el * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) 2019-02-03 23:00:29 +02:00
term-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thingatpt-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thread-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
wdired-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
whitespace-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xdg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
xml-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xt-mouse-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00