emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus-registry text property removal question


From: Ted Zlatanov
Subject: Re: gnus-registry text property removal question
Date: Thu, 28 Sep 2006 10:35:13 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On 28 Sep 2006, address@hidden wrote:

> In article <address@hidden>, Kenichi Handa <address@hidden> writes:
>
>> In article <address@hidden>, CHENG Gao <address@hidden>
>>      writes:
>>> So if we change 
>>> (set-text-properties (point-min) (point-max) nil)
>
>>> to
>>> (buffer-substring-no-properties (point-min) (point-max))
>
>>> it should work right?
>
>> No.
>
> It seems that you don't understand what I wrote repeatedly.
> Ok, I'll change my question.
>
> Gnus somehow gets the string
> "<address@hidden>", and use it as an
> registry entry.  Please find where that string is built.  I
> guess Gnus uses buffer-substring to get it form some buffer.
> If you find that place, try to replace the function
> buffer-substring with buffer-substring-no-properties.

Gao is trying to help, but misunderstood your message.  I think I
understand: by the time the string is printed in the buffer, the text
properties have already been rendered as text.  I'll remove string
properties when I get strings into the registry, and for search
strings.

The gnus-registry actually gets the strings from the Gnus internal
data for an article, so it's not a single point where I can change the
code unfortunately.  I'll have to go through the library to make sure
properties are removed everywhere.

I'll put the fix into gnus-registry.el in the Gnus tree, and it will
make its way into the Emacs tree from there (I'll make sure it's
backported to Gnus 5.10).

Thanks for all your help, Handa-san :)

Ted





reply via email to

[Prev in Thread] Current Thread [Next in Thread]