From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58891 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: [BUG]What does this mean:"Mention that multibyte characters Date: Fri, 15 Oct 2004 14:43:14 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097819068 23208 80.91.229.6 (15 Oct 2004 05:44:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 05:44:28 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M7429@lists.math.uh.edu Fri Oct 15 07:44:13 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CIKsv-0000l9-00 for ; Fri, 15 Oct 2004 07:44:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CIKsa-0008WT-00; Fri, 15 Oct 2004 00:43:52 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CIKsS-0008WO-00 for ding@lists.math.uh.edu; Fri, 15 Oct 2004 00:43:44 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CIKs5-00082E-89 for ding@lists.math.uh.edu; Fri, 15 Oct 2004 00:43:21 -0500 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 820413A0037 for ; Fri, 15 Oct 2004 00:43:19 -0500 (CDT) Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.42) id 1CIKs9-0003aA-EF; Fri, 15 Oct 2004 01:43:25 -0400 Original-To: Juri Linkov X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.0 (gnu/linux) Cancel-Lock: sha1:b1ZsgmsqH0yj17ZiMudUf8TCCPU= X-Hashcash: 1:17:041015:juri@jurta.org::r/UwHOkiWGBtq2/G:000000000000000000000000000000000000000000000000D1V X-Hashcash: 1:17:041015:ding@gnus.org::K0LoCk5S+DUEI5cB:00001QmX X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58891 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58891 Hi, 2004-10-05 Juri Linkov * gnus-group.el (gnus-update-group-mark-positions): * gnus-sum.el (gnus-update-summary-mark-positions): * message.el (message-check-news-body-syntax): * gnus-msg.el (gnus-debug): Use `string-as-multibyte' to convert 8-bit unibyte values to a multibyte string for search functions. Isn't at least the change to gnus-sum.el wrong? When using Emacs 22.0.0, there's a problem that we cannot set marks to articles in the Gnus summary buffer. For instance: >>>>> In >>>>> zrr wrote: > I pressed 'E' to expire the artile, but the article still be > regarded as not expired. There is no mark symbol appeared and no > highlight on the current line. I realized Gnus searches the unibyte strings "\200", "\201", "\202" and "\203" in the multibyte buffer named " *gnus work*" when entering into the summary mode. Your change made Gnus search multibyte strings and it fails. OTOH, Emacs 21.3.50 doesn't fail it as follows: (with-temp-buffer (set-buffer-multibyte t) (insert (string-as-unibyte "\200")) (goto-char (point-min)) (search-forward (string-as-multibyte "\200") nil t)) => 2 (02, 0x2) = ?\C-b Probably, possible solution will be to withdraw your change or to use string-as-unibyte. Please note that you should use mm-string-as-unibyte instead of string-as-unibyte since Gnus supports XEmacs as well as Emacs. Best regards,