aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorReuben Thomas2016-12-01 15:21:57 +0000
committerReuben Thomas2017-08-30 21:59:38 +0100
commit98f01a13a3bf2a4db2dcc82a342ee017326de732 (patch)
tree70aac99762c0ee95026ec72fc307304b6700d372 /etc
parentdc313922d826b9f53cf1426ff36c8cc3f71d64c6 (diff)
downloademacs-98f01a13a3bf2a4db2dcc82a342ee017326de732.tar.gz
emacs-98f01a13a3bf2a4db2dcc82a342ee017326de732.zip
Add support for arguments in emacsclient's ALTERNATE_EDITOR (Bug #25082)
* lib-src/emacsclient.c (fail): Parse ALTERNATE_EDITOR, or corresponding command-line argument, into quote- or space-separated tokens. If a token starts with a quote, then it naturally is expected to end with a quote; escaping is not supported. This is enough to cope with the typical case of requiring the initial path to be quoted, common on Windows where it may contain spaces. * etc/NEWS: Document. * doc/emacs/misc.texi: Likewise. * doc/man/emacsclient.1: Tweak to remove the implication that only an editor can be specified (the manual already mentions a “command”). Fix a small error where “EDITOR” is referred to rather than “ALTERNATE_EDITOR”. * test/lib-src/emacsclient-tests.el: Add tests.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index ef4d8cda397..0889303f82e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -485,6 +485,13 @@ Linum mode and all similar packages are henceforth becoming obsolete.
485Users and developers are encouraged to switch to this new feature 485Users and developers are encouraged to switch to this new feature
486instead. 486instead.
487 487
488+++
489** emacsclient now accepts command-line options in ALTERNATE_EDITOR
490and --alternate-editor. For example, ALTERNATE_EDITOR="emacs -Q -nw".
491Arguments may be quoted "like this", so that for example an absolute
492path containing a space may be specified; quote escaping is not
493supported.
494
488 495
489* Editing Changes in Emacs 26.1 496* Editing Changes in Emacs 26.1
490 497