2009-06-26 40 views
2

在摘要模式下,當我按R獲取gnus-summary-reply-with-original或F獲取gnus-summary-followup-with-original時,我的簽名被插入原始消息文本的下方。Gnus回覆最上面的簽名

如何告訴gnus在原始引用文本之前的消息頂部插入我的簽名?

回答

3

看起來好像這不是內置的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-articleseval-after-load窗體中,以便它在適當的時間被定義。顯然,如果你想允許定製,創建一個變量並寫出適當的if語句。

2

the development version of Gnus(和GNU Emacs)中,您可以將變量message-cite-reply-position設置爲'above'。

我想你已經知道了TOFU的全部內容,爲什麼不呢,所以我不會在這方面惹人注意。

+0

它不改變簽名的位置... – xuhdev 2016-10-25 04:07:18