Commit 804a0e82 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

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>.
parent 991e1454
Pipeline #6381 failed with stage
in 10 seconds
......@@ -1504,11 +1504,17 @@ set_local_socket (char const *server_name)
"%s: (Be careful: XDG_RUNTIME_DIR is security-related.)\n"),
progname, sockdirname, progname);
}
message (true,
("%s: can't find socket; have you started the server?\n"
"%s: To start the server in Emacs,"
" type \"M-x server-start\".\n"),
progname, progname);
/* If there's an alternate editor and the user has requested
--quiet, don't output the warning. */
if (!quiet || !alternate_editor)
{
message (true,
("%s: can't find socket; have you started the server?\n"
"%s: To start the server in Emacs,"
" type \"M-x server-start\".\n"),
progname, progname);
}
}
else
message (true, "%s: can't stat %s: %s\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment