On 19/05/2025 00:31, Ihor Radchenko wrote:
Charles Choi writes:
Double slash in body text not captured in Org Protocol URL
emacsclient "org-protocol://capture?body=org-protocol://"
...
Only one slash appears in the resulting Org Capture window.
This is because `server--process-filter-1' hard-codes passing the
argument through `expand-file-name', which can cause havoc for
especially unfortunate org-protocol strings.
I am afraid that fixing this would require non-trivial Emacs upstream
changes.
Released version supports `server-eval-args-left' that makes hacks with
an advice for `server-visit-files' and passing URL as file name relative
to emacsclient working directory unnecessary.