From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61065 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Treat sourceforge tracker messages with gnus-cite Date: Sun, 02 Oct 2005 19:39:31 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128275820 6040 80.91.229.2 (2 Oct 2005 17:57:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2005 17:57:00 +0000 (UTC) Original-X-From: ding-owner+m9597@lists.math.uh.edu Sun Oct 02 19:56:58 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EM83r-00032b-Hy for ding-account@gmane.org; Sun, 02 Oct 2005 19:55:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EM83g-0008La-00; Sun, 02 Oct 2005 12:55:32 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EM7re-0008LS-00 for ding@lists.math.uh.edu; Sun, 02 Oct 2005 12:43:06 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EM7rW-0005gJ-TF for ding@lists.math.uh.edu; Sun, 02 Oct 2005 12:43:06 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EM7rV-0002Oz-00 for ; Sun, 02 Oct 2005 19:42:57 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EM7q4-0000PD-K9 for ding@gnus.org; Sun, 02 Oct 2005 19:41:28 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Oct 2005 19:41:28 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Oct 2005 19:41:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 118 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:sglsqfxFoqyGz8V/hkcWN26ojIY= X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61065 Archived-At: Hi, some projects copy sourceforge tracker comments to mailing list which are readable on gmane.org, e.g. gmane.comp.tex.xdvi.devel and gmane.mail.mh-e.devel. Unfortunately these article are hard to read because of the citation style (see below for details) without proper quotation marks: - message 1 (original article) - message 2 - [...] - last message It would be nice if these articles could be made more readable with the gnus-cite machinery, including collapsing of long quotes (I have gnus-cited-lines-visible set to '(3 . 6)). Below is an example taken from [1]: --8<---------------cut here---------------start------------->8--- Bugs item #1306141, was opened at 2005-09-27 15:06 Message generated for change (Comment added) made by psg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113357&aid=1306141&group_id=13357 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MIME Group: CVS Status: Open Resolution: Accepted Priority: 5 Submitted By: Eric Ding (ericding) Assigned to: Nobody/Anonymous (nobody) Summary: msg display broken after displaying msg w/ inline image Initial Comment: [Everything from "Initial Comment" to "^Comment By:" is the very first article in this thread, so it should have the highest gnus-cite-N face.] ---------------------------------------------------------------------- >Comment By: Peter S Galbraith (psg) Date: 2005-09-28 16:02 Message: Logged In: YES user_id=31877 [This is the second article, so it should be in gnus-cite-(N-1) face] ---------------------------------------------------------------------- Comment By: Bill Wohler (wohler) Date: 2005-09-27 18:26 Message: Logged In: YES user_id=93690 [This is the most recent article. It should be displayed in default face.] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113357&aid=1306141&group_id=13357 --8<---------------cut here---------------end--------------->8--- I tried to fiddle with `gnus-cite-parse' without much success (everything below "Initial Comment" seems to belong to the initial comment): --8<---------------cut here---------------start------------->8--- --- gnus-cite.el 26 Aug 2005 14:10:02 +0200 7.15 +++ gnus-cite.el 02 Oct 2005 19:24:51 +0200 @@ -801,6 +801,18 @@ (goto-char begin)) (goto-char start) (setq line (1+ line))) + ;; Try to support "Initial Comment" on sourceforge list: + (goto-char (point-min)) + (when (re-search-forward "Initial Comment:" max t) + (setq begin (count-lines (point-min) (point))) + (setq end (or (re-search-forward "^-\\{60,\\}\n+>?Comment By:" max t) + begin)) + ;; I'm not sure what this does... + (setq entry nil) + (while (< begin end) + (push begin entry) + (setq begin (1+ begin))) + (push (cons "" entry) alist)) ;; Horrible special case for some Microsoft mailers. (goto-char (point-min)) (when (re-search-forward gnus-cite-unsightly-citation-regexp max t) --8<---------------cut here---------------end--------------->8--- Maybe I should use `gnus-cite-loose-attribution-alist'. Ideas? Suggestions? Bye, Reiner. [1] Other MIDs: -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/