diff options
| author | Eric Abrahamsen | 2019-03-31 08:36:56 -0700 |
|---|---|---|
| committer | Eric Abrahamsen | 2019-03-31 08:36:56 -0700 |
| commit | 99be0aba4defb8377cb148f7805ea07babc6182f (patch) | |
| tree | cd02cbb5dd12a3c435e4248ba2998c6260d4a399 | |
| parent | 6d7e18e8015024ef06570e80086f58e834d6d4b6 (diff) | |
| download | emacs-99be0aba4defb8377cb148f7805ea07babc6182f.tar.gz emacs-99be0aba4defb8377cb148f7805ea07babc6182f.zip | |
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.
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index f09c0fbb58e..f5853a24305 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -4750,7 +4750,8 @@ If LINE, insert the rebuilt thread starting on line LINE." | |||
| 4750 | 4750 | ||
| 4751 | (defun gnus-id-to-thread (id) | 4751 | (defun gnus-id-to-thread (id) |
| 4752 | "Return the (sub-)thread where ID appears." | 4752 | "Return the (sub-)thread where ID appears." |
| 4753 | (gethash id gnus-newsgroup-dependencies)) | 4753 | (when (hash-table-p gnus-newsgroup-dependencies) |
| 4754 | (gethash id gnus-newsgroup-dependencies))) | ||
| 4754 | 4755 | ||
| 4755 | (defun gnus-id-to-article (id) | 4756 | (defun gnus-id-to-article (id) |
| 4756 | "Return the article number of ID." | 4757 | "Return the article number of ID." |