Hi Eric,

You are probably right, I guess a change between 9.1 and 9.3 on this point. I just downgraded to emacs 26.1 and to org-mode 9.1 because I also noticed that org-export-head https://github.com/itf/org-export-head i.e. the org blog exporter that I am using does not work with org-mode 9.3, unfortunately, and Ivan has no time to adapt this tool to the last release of org-mode. That's too bad...

Best wishes,

Jo.

Le mer. 29 juil. 2020 à 13:37, Eric S Fraga <e.fraga@ucl.ac.uk> a écrit :
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