From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86332 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnml groups showing up with '*' at startup Date: Tue, 24 Nov 2015 19:40:57 +0900 Organization: Emacsen advocacy group Message-ID: References: <874mgete9f.fsf@tullinup.koldfront.dk> <87fuzwegrc.fsf@tullinup.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448361737 23504 80.91.229.3 (24 Nov 2015 10:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 10:42:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34564@lists.math.uh.edu Tue Nov 24 11:42:01 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1B2t-0000Kg-CE for ding-account@gmane.org; Tue, 24 Nov 2015 11:41:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1a1B1v-0006th-GZ; Tue, 24 Nov 2015 04:40:59 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a1B1t-0006tH-C7 for ding@lists.math.uh.edu; Tue, 24 Nov 2015 04:40:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1a1B1s-00008J-MI for ding@lists.math.uh.edu; Tue, 24 Nov 2015 04:40:57 -0600 Original-Received: from [216.246.47.56] (helo=memphis.hostforweb.net) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1a1B1q-0003dj-NA for ding@gnus.org; Tue, 24 Nov 2015 11:40:54 +0100 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:61090 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a1B1j-002kw7-L0 for ding@gnus.org; Tue, 24 Nov 2015 04:40:47 -0600 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.130014 (=?utf-8?Q?=E7=9C=9F?= Gnus v0.14) Emacs/25.1.50 (i686-pc-cygwin) Cancel-Lock: sha1:/xYFaDVCfz0OxFlg1qpKt1M45MU= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - memphis.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-Get-Message-Sender-Via: memphis.hostforweb.net: authenticated_id: yamaokac/only user confirmed/virtual account not confirmed X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86332 Archived-At: On Tue, 24 Nov 2015 11:40:59 +0900, Katsumi Yamaoka wrote: >> --- a/lisp/nnml.el >> +++ b/lisp/nnml.el >> -(deffoo nnml-retrieve-groups (groups &optional server) >> - (when nnml-get-new-mail >> - (if (nnmail-get-new-mail-per-group) [...] > Removing this made Gnus work as before, too. So far I don't > know why/how it does wrong, As for at least a non-ASCII group name like "nnml:=E3=83=86=E3=82=B9=E3=83= =88" I found the cause of the problem. =E3=83=BBGnus uses an encoded group name of the unibyte version to access that group. By default utf-8 is used for encoding, i.e.: "nnml:=E3=83=86=E3=82=B9=E3=83=88" -> "nnml:\343\203\206\343\202\271\343\= 203\210" =E3=83=BB`nnml-retrieve-groups' inserts an encoded group name to the `nntp-server-buffer', in which the multibyteness is turned on. =E3=83=BB`gnus-groups-to-gnus-format' reads it using `read'. Because the multibyteness is turned on, the result will be a symbol of the multibyte version, and the active info will be created in `gnus-active-hashtb' with a multibyte group name. That cannot be accessed by Gnus. A quick hack is attached below, although I don't want to install it because it will probably damage Gnus' speed. Moreover, it won't be a fix to Peter's and Adam's problems; both don't seem to mention groups of non-ASCII names. > but I think we should remove it if > it is nonessential and nonurgent. The function has already been > in the emacs-25 branch (for releasing Emacs 25.1). > WDYT Michael? --- gnus-start.el~ 2015-10-01 01:52:23.531908800 +0000 +++ gnus-start.el 2015-11-24 10:38:38.449503300 +0000 @@ -2256,8 +2256,10 @@ (skip-chars-forward " \t") (insert prefix) (goto-char opoint) - (set (let ((obarray hashtb)) (read cur)) - (cons min max))) + (gnus-sethash + (string-as-unibyte (symbol-name (read cur))) + (cons min max) + hashtb)) (error (and group (symbolp group) (set group nil)))) (forward-line 1))) (let (min max group)