From: "Sebastian P. Luque" <spluque@gmail.com>
To: ding@lists.math.uh.edu
Subject: Re: removing signatures when using supercite
Date: Tue, 08 Jun 2010 23:04:23 -0500 [thread overview]
Message-ID: <877hm8lum0.fsf@kolob.sebmags.homelinux.org> (raw)
In-Reply-To: <b4mmxv4uauf.fsf@jpl.org>
On Wed, 09 Jun 2010 12:46:32 +0900,
Katsumi Yamaoka <yamaoka@jpl.org> wrote:
>>>>>> Sebastian P. Luque wrote:
>> I'd like to remove signatures when replying/following-up while using
>> `sc-cite-original' for `message-cite-function' (i.e. Supercite). I
>> thought the following would do:
>> (add-hook 'mail-citation-hook 'message-remove-signature)
> I don't use Supercite but it doesn't seem to call mail-citation-hook.
Yet the Supercite manual says:
,-----[ (info "(sc)Getting Connected") lines: 576 - 580 ]
| In most cases, all that is necessary to begin using Supercite is to add
| the following to `~.emacs':
|
| (add-hook 'mail-citation-hook 'sc-cite-original)
`-----
> 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.
starting from the first line in the cited message, down to the last
one. I've tried adding `message-remove-signature' to both the end and
beginning of the hook to no avail:
,-----[ C-h v sc-pre-hook RET ]
| sc-pre-hook is a variable defined in `supercite.el'.
| Its value is shown below.
|
| This variable is potentially risky when used as a file local variable.
|
| Documentation:
| Hook which gets run before each invocation of `sc-cite-original'.
|
| You can customize this variable.
|
| Value:
| ((lambda nil
| (save-excursion
| (let
| ((citexp
| (format "^[%s %s]+ *$" sc-citation-leader sc-citation-delimiter)))
| (while
| (re-search-forward citexp nil t)
| (replace-match "")))))
| message-remove-signature)
|
| [back]
`-----
The lambda hook above was installed by Supercite.
--
Seb
next prev parent reply other threads:[~2010-06-09 4:04 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 [this message]
2010-06-09 5:13 ` Sebastian P. Luque
2010-06-09 6:09 ` Katsumi Yamaoka
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=877hm8lum0.fsf@kolob.sebmags.homelinux.org \
--to=spluque@gmail.com \
--cc=ding@lists.math.uh.edu \
/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).