在摘要模式下,当我按R表示gnus- summary -reply-with-original或按F表示gnus-summary- press with- original时,我的签名会插入到原始消息文本的下面。
我怎样才能告诉gnus在消息的最上面插入我的签名,在原文的引用文本之前?
发布于 2009-07-08 19:02:41
看起来这不是Gnus内置的选项(从v5.10.8开始),所以您必须重新定义一个内置函数,如下所示:
(eval-after-load "gnus-msg"
(defun gnus-inews-yank-articles (articles)
(let (beg article yank-string)
(goto-char (point-max)) ; put articles after signature
(insert "\n") ; and one extra newline
; was this (message-goto-body)
(while (setq article (pop articles))
(when (listp article)
(setq yank-string (nth 1 article)
article (nth 0 article)))
(save-window-excursion
(set-buffer gnus-summary-buffer)
(gnus-summary-select-article nil nil nil article)
(gnus-summary-remove-process-mark article))
(gnus-copy-article-buffer nil yank-string)
(let ((message-reply-buffer gnus-article-copy)
(message-reply-headers
;; The headers are decoded.
(with-current-buffer gnus-article-copy
(save-restriction
(nnheader-narrow-to-headers)
(nnheader-parse-naked-head)))))
(message-yank-original)
(setq beg (or beg (mark t))))
(when articles
(insert "\n")))
(push-mark)
(goto-char beg))))我将'gnus-inews-yank-articles的新定义包装在一个eval-after-load表单中,以便在适当的时候定义它。显然,如果您希望允许自定义,请创建一个变量并编写适当的if语句。
发布于 2011-07-31 02:30:04
在the development version of Gnus (和GNU Emacs)中,您可以将变量message-cite-reply-position设置为‘message-cite-reply-position’。
我猜你已经知道了所有关于TOFU的事情,为什么不呢,所以我就不再胡说了。
https://stackoverflow.com/questions/1050968
复制相似问题