From d117db0121caa6fc7022f13830c79e51b60a2c34 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 12 Jun 2024 14:10:32 +0300 Subject: [PATCH] Support --no-window-system option in emacsclient * lib-src/emacsclient.c (print_help_and_exit, longopts): Add '--no-window-system' alias for -t. (Bug#71509) (cherry picked from commit ebb0a3036d2256c214b3116b029ecbcc63040be0) --- lib-src/emacsclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 79db1ef2f47..8e64f1e92d3 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -173,6 +173,7 @@ static struct option const longopts[] = { "version", no_argument, NULL, 'V' }, { "tty", no_argument, NULL, 't' }, { "nw", no_argument, NULL, 't' }, + { "no-window-system", no_argument, NULL, 't' }, { "create-frame", no_argument, NULL, 'c' }, { "reuse-frame", no_argument, NULL, 'r' }, { "alternate-editor", required_argument, NULL, 'a' }, @@ -690,7 +691,8 @@ Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\ The following OPTIONS are accepted:\n\ -V, --version Just print version info and return\n\ -H, --help Print this usage information message\n\ --nw, -t, --tty Open a new Emacs frame on the current terminal\n\ +-nw, -t, --tty, --no-window-system\n\ + Open a new Emacs frame on the current terminal\n\ -c, --create-frame Create a new frame instead of trying to\n\ use the current Emacs frame\n\ -r, --reuse-frame Create a new frame if none exists, otherwise\n\ -- 2.39.2