From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65405 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: hide citation Date: Mon, 15 Oct 2007 10:51:45 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192413249 29736 80.91.229.12 (15 Oct 2007 01:54:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 01:54:09 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13907@lists.math.uh.edu Mon Oct 15 03:53:59 2007 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.50) id 1IhF9a-0008Si-0B for ding-account@gmane.org; Mon, 15 Oct 2007 03:53:58 +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 1IhF8G-0002Pf-BK; Sun, 14 Oct 2007 20:52:36 -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 1IhF8E-0002PR-Vv for ding@lists.math.uh.edu; Sun, 14 Oct 2007 20:52:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IhF88-0002Aa-Lq for ding@lists.math.uh.edu; Sun, 14 Oct 2007 20:52:34 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IhF7z-00061m-00 for ; Mon, 15 Oct 2007 03:52:19 +0200 Original-Received: from [66.225.201.151] (port=48257 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1IhF7U-0000x7-Ao for ding@gnus.org; Sun, 14 Oct 2007 20:51:48 -0500 X-Hashcash: 1:20:071015:ding@gnus.org::IdWNIrIUNZZo63tg:00001tg8 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.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:kzyQxgMLup6ocSIOUUxfktiTYNc= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus 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: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65405 Archived-At: >>>>> Leo wrote: > With the following setting, > (setq gnus-treat-hide-citation t > gnus-cited-lines-visible '(3 . 3)) > articles with inline patch will also be hidden, for example this > article: This is the case where a patch is in the text/plain body. Because of the value of `gnus-article-treat-types', gnus-treat-* is performed on it. > Now if I try to apply the patch with 'M-x ediff-patch-file' to apply the > patch in the Article buffer to the file, it will fail because of the > extra [+] or [-]. > So what's the solution? is there a command to toggle hidden citation? One is to improve `message-cite-prefix-regexp' so that it doesn't match a single `+' or `-' in the beginning of lines. (Maybe I've never seen replies in which a single `+' or `-' is used for the citation.) For example: --8<---------------cut here---------------start------------->8--- (setq message-cite-prefix-regexp "[\t ]*\\(?:[[:word:]]+[-._[:word:]]*\\(?:[\t ]*[]+>|}]+\\)+\ \\|\\(?:[]>|}][\t ]+\\|[]+>|}][]+>|}]+[\t ]*\\)\\(?:[]+>|}]+[\t ]*\\)*\\)") --8<---------------cut here---------------end--------------->8--- Another is to pull "text/x-patch" from `gnus-article-treat-types' and to make mm-uu.el dissect a patch in the text/plain body as a text/x-patch part. I have currently no concrete idea to do that, though.