首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带签名的Gnus回复在顶部

带签名的Gnus回复在顶部
EN

Stack Overflow用户
提问于 2009-06-26 19:57:04
回答 2查看 930关注 0票数 3

在摘要模式下,当我按R表示gnus- summary -reply-with-original或按F表示gnus-summary- press with- original时,我的签名会插入到原始消息文本的下面。

我怎样才能告诉gnus在消息的最上面插入我的签名,在原文的引用文本之前?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2009-07-08 19:02:41

看起来这不是Gnus内置的选项(从v5.10.8开始),所以您必须重新定义一个内置函数,如下所示:

代码语言:javascript
复制
(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语句。

票数 3
EN

Stack Overflow用户

发布于 2011-07-31 02:30:04

the development version of Gnus (和GNU Emacs)中,您可以将变量message-cite-reply-position设置为‘message-cite-reply-position’。

我猜你已经知道了所有关于TOFU的事情,为什么不呢,所以我就不再胡说了。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1050968

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档