aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-02 07:00:30 +0000
committerRichard M. Stallman1998-07-02 07:00:30 +0000
commit4a55f847c5fa39c5526c3e465f67341d64c173bd (patch)
treec4afadf820b96ed8c897a77b5ffde86cf80d25c2
parentb1a4cc6179318788657c6a041a2bf642ee25b256 (diff)
downloademacs-4a55f847c5fa39c5526c3e465f67341d64c173bd.tar.gz
emacs-4a55f847c5fa39c5526c3e465f67341d64c173bd.zip
(message-cite-original): If mail-citation-hook
is non-nil, just run that and do nothing else. (message-cite-function): Don't initialize from mail-citation-hook.
-rw-r--r--lisp/gnus/message.el39
1 files changed, 21 insertions, 18 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index f104a6e6346..042aede04d4 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -463,11 +463,11 @@ Used by `message-yank-original' via `message-yank-cite'."
463 463
464;;;###autoload 464;;;###autoload
465(defcustom message-cite-function 465(defcustom message-cite-function
466 (if (and (boundp 'mail-citation-hook) 466 'message-cite-original
467 mail-citation-hook) 467 "*Function for citing an original message.
468 mail-citation-hook 468Predefined functions include `message-cite-original' and
469 'message-cite-original) 469`message-cite-original-without-signature'.
470 "*Function for citing an original message." 470Note that `message-cite-original' uses `mail-citation-hook'if that is non-nil."
471 :type '(radio (function-item message-cite-original) 471 :type '(radio (function-item message-cite-original)
472 (function-item sc-cite-original) 472 (function-item sc-cite-original)
473 (function :tag "Other")) 473 (function :tag "Other"))
@@ -1629,19 +1629,22 @@ prefix, and don't delete any headers."
1629 1629
1630(defun message-cite-original () 1630(defun message-cite-original ()
1631 "Cite function in the standard Message manner." 1631 "Cite function in the standard Message manner."
1632 (let ((start (point)) 1632 (if (and (boundp 'mail-citation-hook)
1633 (functions 1633 mail-citation-hook)
1634 (when message-indent-citation-function 1634 (run-hooks 'mail-citation-hook)
1635 (if (listp message-indent-citation-function) 1635 (let ((start (point))
1636 message-indent-citation-function 1636 (functions
1637 (list message-indent-citation-function))))) 1637 (when message-indent-citation-function
1638 (goto-char start) 1638 (if (listp message-indent-citation-function)
1639 (while functions 1639 message-indent-citation-function
1640 (funcall (pop functions))) 1640 (list message-indent-citation-function)))))
1641 (when message-citation-line-function 1641 (goto-char start)
1642 (unless (bolp) 1642 (while functions
1643 (insert "\n")) 1643 (funcall (pop functions)))
1644 (funcall message-citation-line-function)))) 1644 (when message-citation-line-function
1645 (unless (bolp)
1646 (insert "\n"))
1647 (funcall message-citation-line-function)))))
1645 1648
1646(defun message-insert-citation-line () 1649(defun message-insert-citation-line ()
1647 "Function that inserts a simple citation line." 1650 "Function that inserts a simple citation line."