info-gnus-english
[Top][All Lists]
Advanced

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

Custom article quit function and reopen issue


From: Bartosz Kaczyński
Subject: Custom article quit function and reopen issue
Date: Wed, 12 Feb 2025 08:08:13 +0000

I attempted to create a custom function to close the article buffer and
delete its window:

--8<---------------cut here---------------start------------->8---
(defun my-gnus-article-quit ()
  "Close the current article buffer and delete its window."
  (interactive)
  (kill-current-buffer)
  (delete-window))

(define-key gnus-article-mode-map (kbd "q") #'my-gnus-article-quit)
--8<---------------cut here---------------end--------------->8---

While this works in closing the article buffer, reopening the same
article results in a blank article in edit mode, which seems like
another potential issue.

Could you confirm if this is expected behavior or a bug? If it's a bug,
is there a recommended fix or workaround?

Best regards,
Bart



reply via email to

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