From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ozhap Newsgroups: gmane.emacs.bugs Subject: bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having spaces not appearing Date: Sat, 19 Sep 2020 13:15:58 +0530 Message-ID: <87h7ruw6o9.fsf@Kittu.i-did-not-set--mail-host-address--so-tickle-me> References: <87wo23u7hn.fsf@ericabrahamsen.net> <87sgbejrdr.fsf@Kittu.i-did-not-set--mail-host-address--so-tickle-me> <87imcaz1kd.fsf@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6906"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eric Abrahamsen , 42823@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 19 09:47:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJXaY-0001hU-1E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 09:47:18 +0200 Original-Received: from localhost ([::1]:37794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJXaW-0001Ie-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 03:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJXaI-0001IB-Mi for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 03:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJXaI-000127-DL for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 03:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJXaI-0005eD-BS for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 03:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ozhap Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Sep 2020 07:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42823 X-GNU-PR-Package: emacs Original-Received: via spool by 42823-submit@debbugs.gnu.org id=B42823.160050158221659 (code B ref 42823); Sat, 19 Sep 2020 07:47:02 +0000 Original-Received: (at 42823) by debbugs.gnu.org; 19 Sep 2020 07:46:22 +0000 Original-Received: from localhost ([127.0.0.1]:45575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJXZe-0005dH-3l for submit@debbugs.gnu.org; Sat, 19 Sep 2020 03:46:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:51991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJXZc-0005d5-HC for 42823@debbugs.gnu.org; Sat, 19 Sep 2020 03:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600501563; bh=SF1UUIwqNzY1GEHzbFLEQ9g75deouWhbbvk0xsfV6cc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=AxA+wgjQGRehIRYgZWLoyrSxGxKvbuM4ey/we0c2Wq21933QK+x+33Vq7bY2Q/1JR g2ZgFU8Af0aNczxMAZLoThAiigTHtlCEe9pcGeqTrGdu74lQRAh93pYVRvR3CT/Yax tq4H2F5fn5xzreDxBv9D/VItg/jjGiCG9FiB7kZ8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([59.94.230.38]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MYvcA-1jxYj43OsK-00UspE; Sat, 19 Sep 2020 09:46:03 +0200 In-Reply-To: <87imcaz1kd.fsf@linux-m68k.org> X-Provags-ID: V03:K1:/Ewz8qScP4lliassTsy/GxUOfUwIaQKb8bl0a8uv/2eixP9ZP9V UlulIZtMqOkR8ytiN4EbzpFyUz4E5TCcEh5CRZ897djDvyH+w8UHlLpESs0Rb9WOHPEpoPh VpDXgC91WsTJLBmeOCzN3eK+vXntQ1tpwUwHZrIdj3x4NS/DqDOn4DKHPOIKhY3PfYNv1pt Vq87edYf1XRoP2Iptd9pg== X-UI-Out-Filterresults: notjunk:1;V03:K0:0ALmRJVrADA=:+XBZi7QrNEXSfjHiPi32C8 DzsfAEBvxt64TyFOkX8gY2MkMrEIT49X7ZemYWKhKrcI9Nypy18Z5UMilzECGhcC0KQlULSjP 5pji2nzWjIgnFUGXfKsc2oPL8JkLafbSpmIXCVvT3Lj0Z6JvscGIBlqB1L84N4heWA2zH0qtV wUdNHTF87HUJ2dOP7lAbR0uoIJOtFKPc2dGeXlzIuPETXKC1JzI+c4ZElnV7HTbWxsKVITac0 fS3+8Wwy4iZhu8cWowp2BsXpvN78m8+3s/zpX1qbPeXCUcnztr180JemQ/GB+5bb2J1P6M+pJ Uba6jaXyloHzD+oQ3vldvjngtcbZpnvoJ22DN5nYWdUOJ5XQlok5RRbOffG/aewhfqykvPd29 sAVrLEB12T7vd3zIfTT/xiUVRjvnMP7To+u2cluSDXjnofs3DEZj4wafX1mM0ePlaYX0xcow5 jynrrJnmQP86uEiKTY58FOnRvCCiD9bCMNmfiKhwCiKeFhuf1Du/Sietn4AAxNQ0AXj5Z72Rt wVKEZ9xHFoC98yLMV6ZD1aFHsD7eFAgZnq7BlkRom8umTHu7NxRvKTNO1DKmXJEtRj08o9hGQ yef+w/HEo//q2RkB5eRPEScG1dMUa1HiOoY9ctjNxWjvnmRbxYuVlOME5eGH0xfVPpg/s8Hye /pw+2NBDBEi1RJUIA0+JgqFd4qRNF9FlIu/ZZ0KKHKB6WO51Zx/xam82afbnogd4iuAJnuhsY sy5lgdtVgTHn5kRJCXHDiFlFGkl2ESW3eaCgvyjBEF34aaBLuPIV3HqRPA29U7TqFGpxZEVv X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188369 Archived-At: Andreas Schwab writes: > On Sep 19 2020, Ozhap wrote: > >> + (insert (format "\"%s\" %d %d y\n" >> + (replace-regexp-in-string >> + "[\\\"]" "\\\\\\&" > > You can use %S as the format instead. Perfect! Thanks. So I'm using this now: diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 3429d6560b..c2f0e355bc 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1179,7 +1179,7 @@ gnus-write-active-file (maphash (lambda (group active) (when active - (insert (format "%s %d %d y\n" + (insert (format "%S %d %d y\n" (if full-names group (gnus-group-real-name group)) Forgot to add earlier: The problem didn't occur in 26.3 because the intern command retired in c1b63af4458e92bad33da0def2b15c206656e2fa escaped space characters (as well as other symbols). -- Ozhap