From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/16626 Path: main.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: article highlighting in pgnus-0.13 Date: Wed, 02 Sep 1998 17:42:45 GMT Organization: Carnegie Mellon University : KANTOO Project Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035155469 28992 80.91.224.250 (20 Oct 2002 23:11:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:11:09 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id NAA13432 for ; Wed, 2 Sep 1998 13:47:19 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id MAF01829; Wed, 2 Sep 1998 12:16:15 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 02 Sep 1998 12:43:36 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id MAA05223 for ; Wed, 2 Sep 1998 12:42:56 -0500 (CDT) Original-Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id NAA13358 for ; Wed, 2 Sep 1998 13:42:49 -0400 (EDT) Original-Received: (qmail 10558 invoked by uid 509); 2 Sep 1998 17:42:46 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: emacs.ding Original-Lines: 32 X-Newsreader: Pterodactyl Gnus v0.13/Emacs 20.3 Original-NNTP-Posting-Host: 128.2.110.42 Original-X-Trace: sunsite.auc.dk 904758165 128.2.110.42 (Wed, 02 Sep 1998 19:42:45 MET DST) Original-NNTP-Posting-Date: Wed, 02 Sep 1998 19:42:45 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:16626 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:16626 Lars Magne Ingebrigtsen writes: > Michael Welsh Duggan writes: > > > Maybe. You would have to use markers, since you don't know how many > > characters the text is going to expand into. I can have a go at > > writing something. (It will be a good opportunity to see if markers > > survive `decode-coding-region', since text properties don't.) > > I would be surprised if markers survived. If they are, that could be > exploited. > > A different approach would be to save all the text in the region (in a > string or a temp buffer), encode the region, and then compare the > saved region with what you have, and copy the text props over where > matches are made. > > Or something. > > Do you want to take a whack at either approaches? I'd be muchu > grateful. In fact, if something like this were available, I'd submit > it to RMS for inclusion in Emacs 20.4. > `save-text-properties-encode-coding-region'? :-) I'll give it a whack. Of course, in 20.4, if we are lucky, decode-coding-region will be fixed w/respect to text properties. Hm... Maybe I will take a look at the code in that and see what it looks like. -- Michael Duggan (md5i@cs.cmu.edu) .