[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having sp
From: |
Ozhap |
Subject: |
bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having spaces not appearing |
Date: |
Sat, 19 Sep 2020 13:15:58 +0530 |
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