From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56395 Path: main.gmane.org!not-for-mail From: sigurd@12move.de (Karl =?iso-8859-1?q?Pfl=E4sterer?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: #v+, #v- Date: Sun, 15 Feb 2004 04:33:54 +0100 Organization: Lemis World Sender: ding-owner@lists.math.uh.edu Message-ID: References: <20040211170004.GA1389@server.schwinge.homeip.net> <87isi9ldpb.fsf@emptyhost.emptydomain.de> <87ad3ljofa.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1076817668 30288 80.91.224.253 (15 Feb 2004 04:01:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2004 04:01:08 +0000 (UTC) Original-X-From: ding-owner+M4935@lists.math.uh.edu Sun Feb 15 05:01:01 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AsDSn-0006rD-00 for ; Sun, 15 Feb 2004 05:01:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AsDS2-0004ld-00; Sat, 14 Feb 2004 22:00:14 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AsDRo-0004lH-00 for ding@lists.math.uh.edu; Sat, 14 Feb 2004 22:00:00 -0600 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id 6B2073A004D for ; Sat, 14 Feb 2004 21:59:59 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1AsDRm-0002Y4-00 for ; Sun, 15 Feb 2004 04:59:58 +0100 Original-To: ding@gnus.org Original-Path: wintendo.pflaesterer.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 58 Original-NNTP-Posting-Host: p62.246.10.116.tisdip.tiscali.de Original-X-Trace: quimby.gnus.org 1076817598 9798 62.246.10.116 (15 Feb 2004 03:59:58 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 15 Feb 2004 03:59:58 +0000 (UTC) X-Face: #iIcL\6>Qj/G*F@AL9T*v/R$j@7Q`6#FU&Flg6u6aVsLdWf(H$U5>:;&*>oy>jOIWgA%8w* A!V7X`\fEGoQ[@D'@i^*p3FCC6&Rg~JT/H_*MOX;"o~flADb8^ Mail-Copies-To: never User-Agent: Gnus/5.110002 (No Gnus v0.2) Hamster/2.0.4.0 Cancel-Lock: sha1:wiRefI777dSmmncse//t4xvfybE= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56395 On 14 Feb 2004, Kai Grossjohann <- kai@emptydomain.de wrote: > lawrence mitchell writes: >> I believe they're not supported in other mail/newsreaders >> though. > Well, anyone up to doing it for Gnus? Sounds like a cool feature. We > *do* already have MIME multiparts, but one feature more, what can it > hurt... Well I did a first study to see what maybe had to be done but had quick some questions which I couldn't answer myself without deeply studying the sources. (defun gnus-article-search-verbose () (let (verbose pt) (save-match-data (save-excursion (goto-char (point-min)) (while (re-search-forward "^#v\\+" nil t) (setq pt (match-beginning 0)) (and (re-search-forward "^#v\\(.\\)" nil t) (string-equal (match-string 1) "-") (push (cons pt (match-end 0)) verbose)) (unless (eobp) (goto-char (point-at-bol)))))) (nreverse verbose))) (defun gnus-article-highlight-verbose ()=20 (dolist (region (gnus-article-search-verbose)) (gnus-overlay-put (gnus-make-overlay (car region) (cdr region)) 'face 'gnus-header-subject-face))) (defvar gnus-treat-highlight-verbose t) (put 'gnus-treat-highlight-verbose 'highlight t) (setq gnus-treatment-function-alist (nconc gnus-treatment-function-alist '((gnus-treat-highlight-verbose gnus-article-highlight-verbose)))) The above code finds the regions of interest and highlights them (I choose some arbitrary face just to have an effect). But we wanted more: wrapping (=3D=3D filling) should be inhibited IIRC. Can this be done with overlays? How should the highlighting be done? Like here with just one face or do we want different faces for different tokens? KP --=20 M=E4nner der Wissenschaft! Man sagt ihr viele nach,=20 aber die meisten mit Unrecht.=20=20 Karl Kraus 'Aphorismen'