Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread

* lisp/gnus/gnus-sum.el (gnus-id-to-thread): If dependencies haven't
  been initialized yet, don't blow up. Mimicks previous (non hasht
  table) behavior.
This commit is contained in:
Eric Abrahamsen 2019-03-31 08:36:56 -07:00
parent 6d7e18e801
commit 99be0aba4d

View file

@ -4750,7 +4750,8 @@ If LINE, insert the rebuilt thread starting on line LINE."
(defun gnus-id-to-thread (id)
"Return the (sub-)thread where ID appears."
(gethash id gnus-newsgroup-dependencies))
(when (hash-table-p gnus-newsgroup-dependencies)
(gethash id gnus-newsgroup-dependencies)))
(defun gnus-id-to-article (id)
"Return the article number of ID."