GNU bug report logs - #46840
27.1; Add gnus-draft-mode-prepared-hook

Previous Next

Packages: gnus, emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 1 Mar 2021 03:26:02 UTC

Severity: normal

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46840 in the body.
You can then email your comments to 46840 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#46840; Package emacs,gnus. (Mon, 01 Mar 2021 03:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org. (Mon, 01 Mar 2021 03:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; Add gnus-draft-mode-prepared-hook
Date: Mon, 01 Mar 2021 01:02:41 +0800
If there were a gnus-draft-mode-prepared-hook, this could be simplified:
(add-hook
 'gnus-summary-prepared-hook ;gnus-draft-mode-hook won't work until second visit, so use:
 (lambda () ;No other way to start at the last article instead of the first.
   (if (string-match gnus-newsgroup-name "nndraft:drafts")
       (progn
	 (goto-char (point-max))(forward-line -1))))); not the middle of the line, but good enough.

Also gnus-draft-mode-prepared-hook would sound clearer than
gnus-draft-prepared-hook, which seems like it is talking about a single draft.

P.S.,
(info "(gnus) Various Summary Stuff") mentions that mode's hooks, but
(info "(gnus) Drafts") doesn't. There are at least a couple.




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#46840; Package emacs,gnus. (Mon, 01 Mar 2021 13:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 46840 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 46840 <at> debbugs.gnu.org
Subject: Re: bug#46840: 27.1; Add gnus-draft-mode-prepared-hook
Date: Mon, 01 Mar 2021 14:01:43 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> If there were a gnus-draft-mode-prepared-hook, this could be simplified:

Sorry; that doesn't seem very useful -- as you've found out, you can
trivially do that from `gnus-summary-prepared-hook'.  Closing.

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




bug closed, send any further explanations to 46840 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 01 Mar 2021 13:02:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Mar 2021 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.