Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] 0.37 gnus-article-edit-article (added new hook)
@ 1998-03-20 16:05 jari.aalto
  1998-03-23 13:12 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: jari.aalto @ 1998-03-20 16:05 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 375 bytes --]


    I was seeking for a hook that would run after everything was set
    after article Edit command was called, but I only found

	gnus-article-edit-mode-hook
	  Variable: Hook run in article edit mode buffers.
	  Plist: 4 properties

    Which is run before the actual article is inserted to the buffer.
    If I have missed something, please ignore this patch.

    jari


[-- Attachment #2: gnus-art.el.diff --]
[-- Type: application/octet-stream, Size: 968 bytes --]

Prereq: 1.37

===================================================================
RCS file: RCS/gnus-art.el,v
retrieving revision 1.37
retrieving revision 1.37.1.1
diff -ubw -r1.37 -r1.37.1.1
--- 1.37	1998/03/19 08:21:51
+++ 1.37.1.1	1998/03/20 15:57:41
@@ -2567,6 +2567,11 @@
   :group 'gnus-article-various
   :type 'hook)
 
+(defcustom gnus-article-edit-article-hook  nil
+  "Hook run when everything has been set for article editing."
+  :group 'gnus-article-various
+  :type 'hook)
+
 (defvar gnus-article-edit-done-function nil)
 
 (defvar gnus-article-edit-mode-map nil)
@@ -2624,7 +2629,8 @@
     (gnus-configure-windows 'edit-article)
     (setq gnus-article-edit-done-function exit-func)
     (setq gnus-prev-winconf winconf)
-    (gnus-message 6 "C-c C-c to end edits")))
+    (gnus-message 6 "C-c C-c to end edits")
+    (run-hooks 'gnus-article-edit-article-hook)))
 
 (defun gnus-article-edit-done (&optional arg)
   "Update the article edits and exit."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] 0.37 gnus-article-edit-article (added new hook)
  1998-03-20 16:05 [patch] 0.37 gnus-article-edit-article (added new hook) jari.aalto
@ 1998-03-23 13:12 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-03-23 13:12 UTC (permalink / raw)


<jari.aalto@poboxes.com> writes:

>     I was seeking for a hook that would run after everything was set
>     after article Edit command was called, but I only found
> 
> 	gnus-article-edit-mode-hook
> 	  Variable: Hook run in article edit mode buffers.
> 	  Plist: 4 properties
> 
>     Which is run before the actual article is inserted to the buffer.

No article is inserted anywhere.  Read the code, Luke.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-23 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-20 16:05 [patch] 0.37 gnus-article-edit-article (added new hook) jari.aalto
1998-03-23 13:12 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).