From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69728 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: removing signatures when using supercite Date: Wed, 09 Jun 2010 15:09:58 +0900 Organization: Emacsen advocacy group Message-ID: References: <87ocfl2mu8.fsf@kolob.sebmags.homelinux.org> <877hm8lum0.fsf@kolob.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276063877 26357 80.91.229.12 (9 Jun 2010 06:11:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 06:11:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18119@lists.math.uh.edu Wed Jun 09 08:11:16 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 1OMEVM-00020y-PH for ding-account@gmane.org; Wed, 09 Jun 2010 08:11:13 +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 1OMEV2-0002u1-6p; Wed, 09 Jun 2010 01:10:52 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OMEUs-0002tc-JN for ding@lists.math.uh.edu; Wed, 09 Jun 2010 01:10:42 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1OMEUp-0001QI-9c for ding@lists.math.uh.edu; Wed, 09 Jun 2010 01:10:40 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OMEUo-0006xv-00 for ; Wed, 09 Jun 2010 08:10:38 +0200 Original-Received: from localhost ([127.0.0.1]:50829) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1OMEUC-0002fm-Kl for ding@gnus.org; Wed, 09 Jun 2010 01:10:01 -0500 X-Hashcash: 1:20:100609:ding@gnus.org::VFMKhJ8QlIs/Y44+:00001G+g X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:J/5QqVdtfSgOpnJOOnK0/HQOd+M= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69728 Archived-At: >>>>> Sebastian P. Luque wrote: > On Wed, 09 Jun 2010 12:46:32 +0900, > Katsumi Yamaoka 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)))))