From: Ozhap <ozhap@vollbio.de>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>, 42823@debbugs.gnu.org
Subject: bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having spaces not appearing
Date: Sat, 19 Sep 2020 13:15:58 +0530 [thread overview]
Message-ID: <87h7ruw6o9.fsf@Kittu.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87imcaz1kd.fsf@linux-m68k.org>
Andreas Schwab <schwab@linux-m68k.org> 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
next prev parent reply other threads:[~2020-09-19 7:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 7:02 bug#42823: 27.1; gnus-unplugged: nnimap (gmail) folder names having spaces not appearing ozhap
2020-08-12 16:57 ` Eric Abrahamsen
2020-09-19 4:57 ` bug#42823: [PATCH] " Ozhap
2020-09-19 7:08 ` Andreas Schwab
2020-09-19 7:45 ` Ozhap [this message]
2020-09-19 15:36 ` Eric Abrahamsen
2020-09-20 1:32 ` Ozhap
2020-09-23 23:08 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7ruw6o9.fsf@Kittu.i-did-not-set--mail-host-address--so-tickle-me \
--to=ozhap@vollbio.de \
--cc=42823@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.