[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnus-registry text property removal question (was: [bug]Malformed -*- li
From: |
Ted Zlatanov |
Subject: |
gnus-registry text property removal question (was: [bug]Malformed -*- line) |
Date: |
Wed, 27 Sep 2006 13:20:12 -0400 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On 27 Sep 2006, address@hidden wrote:
> In article <address@hidden>, CHENG Gao <address@hidden>
> writes:
>
>> While processing registry temp buffer, the code has
>> ,----
>> | (set-text-properties (point-min) (point-max) nil)
>> `----
>> I changed it to
>> ,----
>> | (toggle-auto-composition 0)
>> `----
>
>> I then tried for some time and got registry file rolled for about ten
>> times (I set max registry entries to 25 thus it can roll fast). Seems it
>> works well.
>
> It's just a workaround. The correct fix is to remove text
> properties from a string before it is printed in a buffer
> that is going to be saved as .gnus.registry.eld, or to fix
> reading (or parsing) routine of that file.
Hello,
I noticed this problem with the gnus-registry before, and I thought
the set-text-properties call would fix it (it's called before the
buffer is written). This is the code:
(let ((coding-system-for-write gnus-ding-file-coding-system)
(standard-output (current-buffer)))
(gnus-gnus-to-quick-newsrc-format t "gnus registry startup file"
'gnus-registry-alist)
(gnus-registry-cache-whitespace file)
(set-text-properties (point-min) (point-max) nil)
(save-buffer))
which is run by default when you save (if you customize
gnus-save-startup-file-via-temp-buffer to be nil, the
gnus-with-output-to-file working-file routine is called instead, but
by default it's t).
If this is not the right solution, let me know the proper way to
eliminate text properties before I write the registry file. It's OK
to remove them on ingress into the registry instead; let me know if
that's better.
I'm asking here because I didn't get a response on the Gnus ding list
when I asked a while ago; perhaps someone here can answer.
Thanks
Ted
- Re: [bug]Malformed -*- line, (continued)
- Re: [bug]Malformed -*- line, CHENG Gao, 2006/09/27
- Re: [bug]Malformed -*- line, Kenichi Handa, 2006/09/27
- Re: [bug]Malformed -*- line, CHENG Gao, 2006/09/27
- Re: [bug]Malformed -*- line, Kenichi Handa, 2006/09/27
- Re: [bug]Malformed -*- line, CHENG Gao, 2006/09/27
- Re: [bug]Malformed -*- line, Kenichi Handa, 2006/09/27
- Re: [bug]Malformed -*- line, CHENG Gao, 2006/09/27
- gnus-registry.el on emacs-unicode-2 (Emacs 23) (was: [bug]Malformed -*- line), Reiner Steib, 2006/09/27
- Re: gnus-registry.el on emacs-unicode-2 (Emacs 23) (was: [bug]Malformed -*- line), CHENG Gao, 2006/09/27
- Re: gnus-registry.el on emacs-unicode-2 (Emacs 23), Reiner Steib, 2006/09/28
- gnus-registry text property removal question (was: [bug]Malformed -*- line),
Ted Zlatanov <=
- Re: gnus-registry text property removal question (was: [bug]Malformed -*- line), CHENG Gao, 2006/09/27
- Re: gnus-registry text property removal question (was: [bug]Malformed -*- line), Kenichi Handa, 2006/09/28
- Re: gnus-registry text property removal question (was: [bug]Malformed -*- line), CHENG Gao, 2006/09/28
- Re: gnus-registry text property removal question (was: [bug]Malformed -*- line), Kenichi Handa, 2006/09/28
- Re: gnus-registry text property removal question (was: [bug]Malformed -*- line), Kenichi Handa, 2006/09/28
- Re: gnus-registry text property removal question, Ted Zlatanov, 2006/09/28