[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom article quit function and reopen issue
From: |
James Thomas |
Subject: |
Re: Custom article quit function and reopen issue |
Date: |
Thu, 27 Feb 2025 15:57:31 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Bartosz Kaczyński writes:
> I attempted to create a custom function to close the article buffer and
> delete its window:
>
> (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)
>
> 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?
Pressing 'g'.
Probably working as designed: better to keep point in Summary itself and
use (info "(gnus) Window Layout"). Why kill the Article buffer anyway?
--