1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
emacs/lisp/gnus
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
..
.dir-locals.el
canlock.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ChangeLog.1 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ChangeLog.2 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ChangeLog.3 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
deuglify.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gmm-utils.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-agent.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-art.el Merge from origin/emacs-26 2019-03-09 10:07:46 -08:00
gnus-async.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-bcklg.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-bookmark.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-cache.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-cite.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
gnus-cloud.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-cus.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-delay.el Simplify use of encode-time 2019-02-10 23:54:35 -08:00
gnus-demon.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
gnus-diary.el Remove some timestamp format assumptions 2019-02-22 13:31:01 -08:00
gnus-dired.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-draft.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-dup.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-eform.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-fun.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-gravatar.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-group.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-html.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-icalendar.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
gnus-int.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
gnus-kill.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-logic.el Simplify use of encode-time 2019-02-10 23:54:35 -08:00
gnus-mh.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-ml.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-mlspl.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-msg.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-notifications.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-picon.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-range.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-registry.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-rfc1843.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-salt.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-score.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-sieve.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus-spec.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-srvr.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-start.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-sum.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-topic.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-undo.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-util.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gnus-uu.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-vm.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus-win.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
gnus.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
gssapi.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
legacy-gnus-agent.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mail-source.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
message.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
mm-archive.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mm-bodies.el Merge from origin/emacs-26 2019-02-20 12:07:22 -08:00
mm-decode.el Name buffer according to attachment filename (bug#34478). 2019-03-09 21:29:18 +01:00
mm-encode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-extern.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-partial.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-url.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-util.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-uu.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mm-view.el * lisp/vc/diff-mode.el (diff-font-lock-keywords): Add more Git headers. 2019-02-25 23:27:47 +02:00
mml-sec.el Merge from origin/emacs-26 2019-01-30 09:12:15 -08:00
mml-smime.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mml.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
mml1991.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mml2015.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnagent.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnbabyl.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
nndiary.el Simplify use of encode-time 2019-02-10 23:54:35 -08:00
nndir.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nndoc.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nndraft.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nneething.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
nnfolder.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nngateway.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnheader.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
nnimap.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
nnir.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
nnmail.el Fix some ineffective backslashes in string literals 2019-03-16 11:38:58 -07:00
nnmaildir.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
nnmairix.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnmbox.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnmh.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnml.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnnil.el
nnoo.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnregistry.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
nnrss.el Merge from origin/emacs-26 2019-02-20 12:07:22 -08:00
nnspool.el Simplify nnspool-request-newgroups arithmetic 2019-02-12 18:25:22 -08:00
nntp.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nnvirtual.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
nnweb.el Change Gnus hash tables into real hash tables 2019-03-22 10:23:30 -07:00
score-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
smiley.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
smime.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
spam-report.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
spam-stat.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
spam-wash.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
spam.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00