Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: removing signatures when using supercite
Date: Wed, 09 Jun 2010 15:09:58 +0900	[thread overview]
Message-ID: <b4mocfk91op.fsf@jpl.org> (raw)
In-Reply-To: <877hm8lum0.fsf@kolob.sebmags.homelinux.org>

>>>>> Sebastian P. Luque wrote:
> On Wed, 09 Jun 2010 12:46:32 +0900,
> Katsumi Yamaoka <yamaoka@jpl.org> wrote:
[...]
>> I guess `sc-pre-hook' is what you look for.

> I've actually tried both this and `sc-post-hook', and something seems to
> clash, as I'm popped to a message composition buffer, with mark and
> point around the cited message, and then lines like the one below start
> flashing every second or so in the minibuffer (and stored in
> *Messages*):

> Mail header "> Hi Sebas..." doesn't conform to RFC 822. skipping...
> No mail headers found! Restoring old information.

Oops, I found the cause of this is that `message-remove-signature'
does the citation (i.e. remove headers, add '> ' to lines, etc.)
using the function `message-indent-citation'.  Hmm,
`message-remove-signature' may be the function for exclusive use
of a certain person.  Here's a workaround (it makes
`message-indent-citation' NOP temporarily):

(add-hook 'sc-pre-hook
	  (lambda ()
	    (let ((m-i-c (symbol-function 'message-indent-citation)))
	      (fset 'message-indent-citation 'ignore)
	      (unwind-protect
		  (message-remove-signature)
		(fset 'message-indent-citation m-i-c)))))



  parent reply	other threads:[~2010-06-09  6:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08 22:14 Sebastian P. Luque
2010-06-09  3:46 ` Katsumi Yamaoka
2010-06-09  4:04   ` Sebastian P. Luque
2010-06-09  5:13     ` Sebastian P. Luque
2010-06-09  6:09     ` Katsumi Yamaoka [this message]
2010-06-09 12:32       ` Sebastian P. Luque
2010-06-09  6:31   ` Citation line (was: removing signatures when using supercite) Teemu Likonen
2010-06-09  8:08     ` Citation line Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mocfk91op.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).