From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69726 Path: news.gmane.org!not-for-mail From: "Sebastian P. Luque" Newsgroups: gmane.emacs.gnus.general Subject: Re: removing signatures when using supercite Date: Tue, 08 Jun 2010 23:04:23 -0500 Organization: University of Manitoba Message-ID: <877hm8lum0.fsf@kolob.sebmags.homelinux.org> References: <87ocfl2mu8.fsf@kolob.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1276056284 7410 80.91.229.12 (9 Jun 2010 04:04:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 04:04:44 +0000 (UTC) To: ding@lists.math.uh.edu Original-X-From: ding-owner+M18117@lists.math.uh.edu Wed Jun 09 06:04:42 2010 connect(): No such file or directory Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMCWt-0006zp-9L for ding-account@gmane.org; Wed, 09 Jun 2010 06:04:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OMCWl-0002Jn-15; Tue, 08 Jun 2010 23:04:31 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OMCWj-0002JJ-2U for ding@lists.math.uh.edu; Tue, 08 Jun 2010 23:04:29 -0500 Original-Received: from idcmail-mo1so.shaw.ca ([24.71.223.10]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1OMCWh-0001PB-T0 for ding@lists.math.uh.edu; Tue, 08 Jun 2010 23:04:28 -0500 Original-Received: from pd2ml3so-ssvc.prod.shaw.ca ([10.0.141.148]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 08 Jun 2010 22:04:23 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=FzA4pbgwAYYA:10 a=ood2b7iyd8MA:10 a=VphdPIyG4kEA:10 a=SBk0VD5RLtBA4KUBIqACxg==:17 a=5MCkQwerAAAA:8 a=UgbX9xYbW4SmGGB0wa0A:9 a=vv9sy7PD0KL3-CBGpioA:7 a=CPISEZHalxizHCV0Uv7EU9yKIdEA:4 a=-43MJ_MtPKAA:10 Original-Received: from unknown (HELO kolob.sebmags.homelinux.org) ([24.77.73.195]) by pd2ml3so-dmz.prod.shaw.ca with ESMTP; 08 Jun 2010 22:04:23 -0600 Mail-Followup-To: ding@lists.math.uh.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69726 Archived-At: On Wed, 09 Jun 2010 12:46:32 +0900, Katsumi Yamaoka 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