[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having sp
From: |
Eric Abrahamsen |
Subject: |
bug#42823: [PATCH] gnus-unplugged: nnimap (gmail) folder names having spaces not appearing |
Date: |
Sat, 19 Sep 2020 08:36:24 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On 09/19/20 13:15 PM, Ozhap wrote:
> 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))
Looks reasonable to me -- definitely the cleanest solution. Do you have
push access? If not I can apply this in a bit.