[...]
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.
On 19/06/2025 23:00, Ihor Radchenko wrote:
Max Nikulin writes:
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.
Do you mean that we can somehow use `server-eval-args-left' to fix the
bug reporting by Charles?
Certainly. This server.el feature was introduced to handle "mailto:"
URLs. Arguments of --eval are not treated as file names and are passed
literally. emacsclient-mail.desktop never used advice similar to
org-protocol, but they passed through all issues related to portability
and security vulnerabilities trying to convert URL into safe elisp
string. Fortunately that shell code is not used any more.
Likely functions in org-protocol.el require some modifications for more
direct handling of arguments.