aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSpencer Baugh2023-09-21 21:35:50 -0400
committerEli Zaretskii2023-10-29 14:10:23 +0200
commit683efb8de5ac3a2ba5ecc073d8c912ec6a61191d (patch)
tree7dbcdda2792a34b22fb19f1c36568e5329442bdd /java
parentf3a27180b7b22e8220f9d92d91ece835545da4aa (diff)
downloademacs-683efb8de5ac3a2ba5ecc073d8c912ec6a61191d.tar.gz
emacs-683efb8de5ac3a2ba5ecc073d8c912ec6a61191d.zip
Add 'server-eval-args-left' to server.el
Passing arbitrary arguments to functions through "emacsclient --eval" sometimes requires complicated escaping to avoid them being parsed as Lisp (as seen in emacsclient-mail.desktop before this change). The new variable 'server-eval-args-left' allows access to the arguments before they are parsed as Lisp. By removing arguments from the variable before they're parsed, a snippet of Lisp can consume arguments, as in emacsclient-mail.desktop. org-protocol might be able to use this as well, which might allow it to drop its current advice on server-visit-files. * etc/emacsclient-mail.desktop: Use 'server-eval-args-left'. * lisp/server.el (server-eval-args-left): New variable. (server-process-filter, server-execute): Make '-eval' arguments available through 'server-eval-args-left'. * lisp/startup.el (argv): Mention 'server-eval-args-left' in docstring. * etc/NEWS: Announce 'server-eval-args-left'. * doc/emacs/misc.texi (emacsclient Options): Document 'server-eval-args-left'. (Bug#65902)
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions