all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 66797@debbugs.gnu.org, Bruno Victal <mirai@makinata.eu>
Subject: bug#66797: 29.1; Debbugs refresh is ineffective when used with get-bug-by-id
Date: Sun, 29 Oct 2023 09:30:32 +0100	[thread overview]
Message-ID: <87pm0x96fr.fsf@gmx.de> (raw)
In-Reply-To: <CADwFkmkT6BoJQzMZWg2pQruGO3PJfzRKPFnUz=r=rHo_ud7pPQ@mail.gmail.com> (Stefan Kangas's message of "Sat, 28 Oct 2023 13:06:18 -0700")

Stefan Kangas <stefankangas@gmail.com> writes:

Hi Stefan,

>> That is correct behavior. Refreshing the bugs consults the cache (which
>> expires after an hour). Getting fresh data from the debbugs.gnu.org
>> server requires 'C-u g'. See the manual (info "(debbugs-ug) Tabulated Lists")
>
> Is it worth documenting that in the `debbugs-gnu' docstring?

It is not related to `debbugs-gnu'. It is a key binding in
`debbugs-gnu-mode', and independent from the way the buffer is created
(by `debbugs-gnu', `debbugs-gnu-search', `debbugs-gnu-bugs', you name
it). Instead, I have extended the docstring of `debbugs-gnu-mode':

--8<---------------cut here---------------start------------->8---
(define-derived-mode debbugs-gnu-mode tabulated-list-mode "Debbugs"
  "Major mode for listing bug reports.
The bugs are are taken from the cache when the list is refreshed.
In order to retrieve the actual bug status after it has been
modified on the debbugs server, consider typing \\`C-u g'.

\\{debbugs-gnu-mode-map}"
--8<---------------cut here---------------end--------------->8---

Btw, `debbugs-gnu-make-control-message' contains the following code:

--8<---------------cut here---------------start------------->8---
    (add-hook 'message-send-actions
              (lambda () (remhash bugid debbugs-cache-data))
              nil t)))
--8<---------------cut here---------------end--------------->8---

That is, after sending the control message, the bug is removed from the
cache. Next time the debbugs buffer is refreshed, new data for this bug
should be taken from the debbugs server. This doesn't help of course,
when the data are retrieved from the server before the change has
arrived it.

Best regards, Michael.





  reply	other threads:[~2023-10-29  8:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-28 14:47 bug#66797: 29.1; Debbugs refresh is ineffective when used with get-bug-by-id Bruno Victal
2023-10-28 16:04 ` Michael Albinus
2023-10-28 20:06   ` Stefan Kangas
2023-10-29  8:30     ` Michael Albinus [this message]
2023-10-29  9:52       ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm0x96fr.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=66797@debbugs.gnu.org \
    --cc=mirai@makinata.eu \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.