From: Lars Ingebrigtsen <larsi@gnus.org>
To: Scott Turner <srt19170@gmail.com>
Cc: 16117@debbugs.gnu.org
Subject: bug#16117: Patch for Emacsclient Unwanted Warning
Date: Wed, 26 Jun 2019 17:02:01 +0200 [thread overview]
Message-ID: <m31rzgz8ye.fsf@gnus.org> (raw)
In-Reply-To: <CA+fxJPSh8aG5Q6L63PfrTOkM5nqCfDjpnoAOrDJWaBDBq090bw@mail.gmail.com> (Scott Turner's message of "Fri, 13 Dec 2013 10:46:12 -0500")
Scott Turner <srt19170@gmail.com> writes:
> In emacsclient, if an existing Emacs server cannot be found and an
> alternate editor is specified, the alternate editor is started. Along
> the way, emacsclient generates a warning that the server cannot be
> found.
>
> On Windows, this warning is a pop-up dialog box that must be dismissed
> by the user. This is an unwanted interruption, and irrelevant, since
> the user has already indicated by using the --alternated-editor option
> how to handle this situation.
>
> The patch below suppresses this warning when the user has specified
> both the --quiet option and the --alternate-editor option. The
> reasoning is that --quiet mutes all messages on success, and that
> because the --alternate-editor has been specified, this message is not
> reporting an error. It seems like a reasonable compromise that will
> allow users to see this warning if they like (by not using --quiet)
> and allow users to avoid it if they like (by using --quiet).
I think your patch makes sense, and the problem is still present in
Emacs, five years after your report.
---
$ emacsclient --quiet --alternate-editor /usr/bin/vi /tmp/a
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
---
Does anybody else have an objection to not outputting that error message
if both --quiet and --alternate-editor is used?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-06-26 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-12 2:47 bug#16117: 24.3; emacsclient -q enhancement request please also suppress gregrwm
2013-12-13 15:46 ` bug#16117: Patch for Emacsclient Unwanted Warning Scott Turner
2019-06-26 15:02 ` Lars Ingebrigtsen [this message]
2020-08-12 22:23 ` Stefan Kangas
2020-08-13 8:30 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m31rzgz8ye.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=16117@debbugs.gnu.org \
--cc=srt19170@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.