aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-08-13 10:29:44 +0200
committerLars Ingebrigtsen2020-08-13 10:29:44 +0200
commit804a0e82f2672db7cabddd99958cc97d5679beeb (patch)
tree797288352ada238d56ca3360932c53ac620658e3 /lib-src
parent991e145450ec8b02865597bc80fd797e39e81f07 (diff)
downloademacs-804a0e82f2672db7cabddd99958cc97d5679beeb.tar.gz
emacs-804a0e82f2672db7cabddd99958cc97d5679beeb.zip
Don't output emacsclient warning if both -a and --quiet
* lib-src/emacsclient.c (set_local_socket): Don't output the warning if both -a and --quiet are specified (bug#16117). Inspired by a patch from Scott Turner <srt19170@gmail.com>.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 380be95222b..871fa7a8d3c 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1504,11 +1504,17 @@ set_local_socket (char const *server_name)
1504 "%s: (Be careful: XDG_RUNTIME_DIR is security-related.)\n"), 1504 "%s: (Be careful: XDG_RUNTIME_DIR is security-related.)\n"),
1505 progname, sockdirname, progname); 1505 progname, sockdirname, progname);
1506 } 1506 }
1507 message (true, 1507
1508 ("%s: can't find socket; have you started the server?\n" 1508 /* If there's an alternate editor and the user has requested
1509 "%s: To start the server in Emacs," 1509 --quiet, don't output the warning. */
1510 " type \"M-x server-start\".\n"), 1510 if (!quiet || !alternate_editor)
1511 progname, progname); 1511 {
1512 message (true,
1513 ("%s: can't find socket; have you started the server?\n"
1514 "%s: To start the server in Emacs,"
1515 " type \"M-x server-start\".\n"),
1516 progname, progname);
1517 }
1512 } 1518 }
1513 else 1519 else
1514 message (true, "%s: can't stat %s: %s\n", 1520 message (true, "%s: can't stat %s: %s\n",