On Wednesday, 29 Jul 2020 at 12:01, Joseph Vidal-Rosset wrote:
> (replace-match "gnus:\\[Gmail\\]/Tous les messages#"))
I wonder whether you have too many \\ (or even any) in this and the
similar replace-string that comes later? Why do you have these at all?
The string argument to both replace-match and replace-string [1] is not
a regexp so [] do not mean anything special.
Have you tried with just "gnus:[Gmail]/..."?
eric
Footnotes:
[1] and according to the documentation, replace-string should only be
used interactively and you should use replace-match instead.
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-682-geac255