emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cb5f690: Allow reading Gnus reports from an offline


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master cb5f690: Allow reading Gnus reports from an offline cache
Date: Mon, 29 Feb 2016 06:53:12 +0000

branch: master
commit cb5f690e4a383129895abf96256fd2c52feff618
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Allow reading Gnus reports from an offline cache
    
    * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
    Allow reading bug reports from an offline cache directory.
---
 lisp/gnus/gnus-group.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index f42f798..3de2609 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2448,7 +2448,11 @@ the bug number, and browsing the URL must return mbox 
output."
       (with-temp-file tmpfile
        (mm-disable-multibyte)
        (dolist (id ids)
-         (url-insert-file-contents (format mbox-url id)))
+         (let ((file (format "~/.emacs.d/debbugs-cache/%s" id)))
+           (if (and (not gnus-plugged)
+                    (file-exists-p file))
+               (insert-file-contents file)
+             (url-insert-file-contents (format mbox-url id)))))
        (goto-char (point-min))
        ;; Add the debbugs address so that we can respond to reports easily.
        (while (re-search-forward "^To: " nil t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]