Gnus will answer with the signature at the top

In summary mode, when I press R for gnus-summary-reply-with-original or F for gnus-summary-followup-with-original, my signature is inserted below the source text of the message.

How can I tell gnus to insert my signature at the very top of the message, before the quoted text of the original?

+3
source share
2 answers

It seems that this is not an option built into Gnus (since version 5.10.8), so you need to override one of the built-in functions:

(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

Gnus ( GNU Emacs) message-cite-reply-position ` above '.

, TOFU , .

+2

Source: https://habr.com/ru/post/1711371/


All Articles