emacs-devel
[Top][All Lists]
Advanced

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

Re: "If you're still seeing problems, please reopen." [Was: bug#25148:]


From: Lars Ingebrigtsen
Subject: Re: "If you're still seeing problems, please reopen." [Was: bug#25148:]
Date: Mon, 18 Nov 2019 09:59:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Michael Albinus <address@hidden> writes:

> I have no idea how this worked for you, but I'm not against to improve
> debbugs-gnu this way.

Let's see...  it must be this code that I found in my ~/.emacs now
combined with debbugs-gnu-save-cache.

But I don't know whether we want to encourage people to download all the
bug reports...

The main problem with this all is that it doesn't update the statuses of
anything -- there needs to be a "fetch new bug statuses and update"
command.  Hm.  Or did debbugs get one of those?  I vaguely feel that
I've asked that before.

(defun lars-offline-debbugs ()
  (interactive)
  (require 'debbugs-gnu)
  (setq debbugs-cache-data
        (with-temp-buffer
          (insert-file "~/.emacs.d/debbugs-cache/list")
          (read (current-buffer))))
  (setq debbugs-cache-expiry nil)
  (debbugs-gnu-show-reports t))

(defun lars-download-bugs ()
  (maphash (lambda (key val)
             (when (and (equal (cadr (assoc 'package val)) "emacs")
                        (not (cdr (assoc 'done val))))
               (let ((file (format "~/.emacs.d/debbugs-cache/%s" key)))
                 (unless (file-exists-p file)
                   (ignore-errors
                     (with-current-buffer (url-retrieve-synchronously
                                           (format 
"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s;mboxmaint=yes;mboxstat=yes"; 
key))
                       (write-region (point-min) (point-max) file)))
                   (sleep-for 5)))))
           debbugs-cache-data))



-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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