[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Prompt to confirm post.
From: |
Richard G Riley |
Subject: |
Prompt to confirm post. |
Date: |
Fri, 07 Sep 2007 12:46:44 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) |
Hi,
I found this function using google to prompt for posting confirmation
while displaying all headers:
(defun message-check-news-syntax ()
"Check the syntax of the message."
(and
(save-excursion
(save-restriction
(widen)
(and
;; We narrow to the headers and check them first.
(save-excursion
(save-restriction
(message-narrow-to-headers)
(message-check-news-header-syntax)))
;; Check the body.
(message-check-news-body-syntax))))
; sm: this last line is my addition
(y-or-n-p "Post the message? ")
))
Is there now a better way to do this? Maybe something which does the
same for sending mail too?
- Prompt to confirm post.,
Richard G Riley <=