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

Previous Next

Packages: emacs, gnus;

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.

Full log


View this message in rfc822 format

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 46840 <at> debbugs.gnu.org
Subject: bug#46840: 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.




This bug report was last modified 4 years and 161 days ago.

Previous Next


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