From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63785 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.gnus.general Subject: Re: gnus-registry text property removal question Date: Thu, 28 Sep 2006 10:35:13 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159454205 2183 80.91.229.2 (28 Sep 2006 14:36:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Sep 2006 14:36:45 +0000 (UTC) Cc: Ding Mailing List Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Thu Sep 28 16:36:45 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSwzf-0002SC-OQ for gebp-emacs-pretest-bug@gmane.org; Thu, 28 Sep 2006 16:36:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSwzf-0000v4-8k for gebp-emacs-pretest-bug@gmane.org; Thu, 28 Sep 2006 10:36:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSwza-0000rr-Oh for emacs-pretest-bug@gnu.org; Thu, 28 Sep 2006 10:36:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSwza-0000qn-4Z for emacs-pretest-bug@gnu.org; Thu, 28 Sep 2006 10:36:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSwzZ-0000qK-Sw for emacs-pretest-bug@gnu.org; Thu, 28 Sep 2006 10:36:01 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GSx4g-0004Lv-3j for emacs-pretest-bug@gnu.org; Thu, 28 Sep 2006 10:41:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GSwyv-0002En-UO for emacs-pretest-bug@gnu.org; Thu, 28 Sep 2006 16:35:21 +0200 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 16:35:21 +0200 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 16:35:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-pretest-bug@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:JC3kyxjoYiLawsXYuAizU2vuUwU= X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:14273 gmane.emacs.gnus.general:63785 Archived-At: On 28 Sep 2006, handa@m17n.org wrote: > In article , Kenichi Handa writes: > >> In article , CHENG Gao >> 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 > "", 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