From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#33653: 27.0.50; Change Gnus obarrays-as-hash-tables into real hash tables Date: Mon, 08 Apr 2019 17:13:25 +0900 Organization: Emacsen advocacy group Message-ID: References: <8736raz3ec.fsf@ericabrahamsen.net> <87y392xoht.fsf@ericabrahamsen.net> <87imxzxa4s.fsf@ericabrahamsen.net> <87a7hn3h3w.fsf@ericabrahamsen.net> <87a7hhtinz.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9937"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (x86_64-unknown-cygwin) Cc: "Basil L. Contovounesios" , Bastien Guerry , Adam =?UTF-8?Q?Sj=C3=B8gren?= , 33653@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 08 10:14:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDPPz-0002H2-8m for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 10:14:15 +0200 Original-Received: from localhost ([127.0.0.1]:49120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDPPy-00053a-8U for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 04:14:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDPPo-00053J-7g for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 04:14:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDPPn-0000o7-BF for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 04:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDPPn-0000nz-6y for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 04:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDPPl-0007fr-On for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 04:14:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8736raz3ec.fsf@ericabrahamsen.net> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Apr 2019 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33653 X-GNU-PR-Package: emacs Original-Received: via spool by 33653-submit@debbugs.gnu.org id=B33653.155471121729458 (code B ref 33653); Mon, 08 Apr 2019 08:14:01 +0000 Original-Received: (at 33653) by debbugs.gnu.org; 8 Apr 2019 08:13:37 +0000 Original-Received: from localhost ([127.0.0.1]:48969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDPPN-0007f4-6B for submit@debbugs.gnu.org; Mon, 08 Apr 2019 04:13:37 -0400 Original-Received: from ladybird.maple.relay.mailchannels.net ([23.83.214.98]:33081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDPPL-0007ew-4e for 33653@debbugs.gnu.org; Mon, 08 Apr 2019 04:13:35 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E71921423F6; Mon, 8 Apr 2019 08:13:33 +0000 (UTC) Original-Received: from hampton.hostforweb.net (100-96-4-125.trex.outbound.svc.cluster.local [100.96.4.125]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 9164F142381; Mon, 8 Apr 2019 08:13:32 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Mon, 08 Apr 2019 08:13:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Cellar-Broad: 01c14e7141e595b5_1554711213539_2389787375 X-MC-Loop-Signature: 1554711213538:877808022 X-MC-Ingress-Time: 1554711213538 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hDPP8-006sva-V3; Mon, 08 Apr 2019 03:13:24 -0500 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&( Cancel-Lock: sha1:ebqac1VsO/gk2LJxRzK0jn4Ylx0= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157340 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, 27 Mar 2019 13:54:42 +0900, Katsumi Yamaoka wrote: > The group level of nnml:=E3=83=86=E3=82=B9=E3=83=88 is 1 and there are so= me unread > articles in it, however the group is not listed in the Group > buffer when I launch Gnus by `C-u 1 M-x gnus RET'... I found a cause of it not to be listed in the group buffer just after launching Gnus. The group entry in the ~/Mail/active file is: =E3=83=86=E3=82=B9=E3=83=88 5 1 y The file coding is utf-8-unix. So, the binary expression of the group name is \343\203\206\343\202\271\343\203\210, where \343 is a single character, and this form is what the hash tables use (in the ~/.newsrc.eld file, "\343" consists of four characters "\", "3", "4", and "3", though). `gnus-active-to-gnus-format' reads it in the following way: =E3=83=BBLoad the active file to the " *nntpd*" buffer in the binary =E3=80=80mode. Copy it to another temp buffer. There \343 is a single =E3=80=80character. =E3=83=BBRead the group name using `(read (current-buffer))'. =E3=80=80Then it is read as a symbol; \343 is still a single character. =E3=83=BBConvert it to a string using `symbol-name'. =E3=80=80\343 is expanded into the one consists of four characters. :< =E3=80=80It should never match to the one in the hash tables. Why the single-char to four-chars conversion happens is that the buffer where those processes are done is in the multibyte mode. So, the patch attached below solves the problem. I'm going to test it for the other back ends... --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-start.el~ 2019-03-25 21:22:46.184139100 +0000 +++ gnus-start.el 2019-04-08 08:07:41.906976900 +0000 @@ -2139,3 +2139,3 @@ - (with-temp-buffer + (mm-with-unibyte-buffer (insert-buffer-substring cur) --=-=-=--