[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 99be0ab: Check gnus-newsgroup-dependencies is hash
From: |
Eric Abrahamsen |
Subject: |
[Emacs-diffs] master 99be0ab: Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread |
Date: |
Sun, 31 Mar 2019 11:40:38 -0400 (EDT) |
branch: master
commit 99be0aba4defb8377cb148f7805ea07babc6182f
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
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.
---
lisp/gnus/gnus-sum.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f09c0fb..f5853a2 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."
(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."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 99be0ab: Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread,
Eric Abrahamsen <=