From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 11 21:48:17 2013 Received: (at submit) by debbugs.gnu.org; 12 Dec 2013 02:48:17 +0000 Received: from localhost ([127.0.0.1]:44521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqwK0-00024r-Ba for submit@debbugs.gnu.org; Wed, 11 Dec 2013 21:48:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49390) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqwJx-00024h-Hm for submit@debbugs.gnu.org; Wed, 11 Dec 2013 21:48:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqwJr-0004Hi-Im for submit@debbugs.gnu.org; Wed, 11 Dec 2013 21:48:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqwJr-0004He-GA for submit@debbugs.gnu.org; Wed, 11 Dec 2013 21:48:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqwJm-0004aJ-Hp for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 21:48:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqwJh-0004FH-9k for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 21:48:02 -0500 Received: from mail-qc0-f178.google.com ([209.85.216.178]:35025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqwJh-0004Di-42 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 21:47:57 -0500 Received: by mail-qc0-f178.google.com with SMTP id i17so6000201qcy.9 for ; Wed, 11 Dec 2013 18:47:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=9tQRztXHDhN4+ekhLnhy5S3DY8SYdnXcjAFXw4JwbYU=; b=LiPVtCnscE4PeAzgyYZzFMR4w8ZwSFZ0IdEl27zBl31cK2/k5hm2ddA3fUBjOPko6N QHXuRNq9vs7Yh0NADcEaeS9hgHcziS5r+6dxecOolmb/IOuVdI9L4pqZW5fHEzlCR9yg 1XtKPCyNU+y8Xj5GYAlWSuFDgKKXSXYEmw7vcSUXONiqcelW/cvmHZD4kp7zOJBOgWz0 rwfRr8sjxIjTvXufeZykR5JZooIvQF47Nu8IebaRy3e4cY1u/4MpGuH4RrCTMRv8Hjbu 0u6w49DEhiPPtZfoKEmyNeLPYBUINPJWsUlnIYJKAvGUXDEpdQDtPT2rK1p856YMYgOH pNxQ== X-Gm-Message-State: ALoCoQnOXvpTTFawt1hKNuG15Hbut9/9AhU1gpXnpvS1eQBDdFOTxu+tlHYbQN6rwnAv5P2n58hy X-Received: by 10.224.126.5 with SMTP id a5mr1562432qas.43.1386816476053; Wed, 11 Dec 2013 18:47:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.96.152.226 with HTTP; Wed, 11 Dec 2013 18:47:25 -0800 (PST) From: gregrwm Date: Wed, 11 Dec 2013 20:47:25 -0600 X-Google-Sender-Auth: Bk_KNtoJ7fhGfO6y0ZR7XBtTZJI Message-ID: Subject: 24.3; emacsclient -q enhancement request please also suppress To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c2f27a6cb00104ed4d5fea X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --001a11c2f27a6cb00104ed4d5fea Content-Type: text/plain; charset=ISO-8859-1 please have emacsclient -qa suppress the following 2 lines: emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu) of 2013-10-03 on rose.fo4.net Configured using: `configure '--without-x'' Important settings: value of $LC_COLLATE: en_DK.UTF-8 value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t evil-mode: t evil-local-mode: t global-undo-tree-mode: t undo-tree-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: : r e p o r t - e m a c s - b u g RET Recent messages: ("emacs" ".emacs") Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. delete-backward-char: Text is read-only [2 times] Load-path shadows: ~/.emacs.d/evil/lib/ert hides /usr/local/share/emacs/24.3/lisp/emacs-lisp/ert Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils shell pcomplete comint regexp-opt ansi-color evil evil-integration warnings evil-maps evil-commands ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util time-date mm-util mail-prsvr password-cache url-vars evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core advice advice-preload evil-common windmove rect evil-digraphs evil-vars ring undo-tree derived easy-mmode help-fns cl-macs gv diff cl cl-lib edmacro kmacro server ediff-hook vc-hooks lisp-float-type tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) --001a11c2f27a6cb00104ed4d5fea Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
please h= ave emacsclient -qa suppress the following 2 lines:
emacsclient: can'= ;t find socket; have you started the server?
To start the server in Emac= s, type "M-x server-start".

In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu)
=A0of 2013-10-03 on <= a href=3D"http://rose.fo4.net">rose.fo4.net
Configured using:
=A0= `configure '--without-x''

Important settings:
=A0 val= ue of $LC_COLLATE: en_DK.UTF-8
=A0 value of $LC_TIME: en_DK.UTF-8
=A0 value of $LANG: en_US.utf8
=A0= locale-coding-system: utf-8-unix
=A0 default enable-multibyte-character= s: t

Major mode: Emacs-Lisp

Minor modes in effect:
=A0 she= ll-dirtrack-mode: t
=A0 evil-mode: t
=A0 evil-local-mode: t
=A0 global-undo-tree-mode: t<= br>=A0 undo-tree-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font= -lock-mode: t
=A0 font-lock-mode: t
=A0 auto-composition-mode: t
= =A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-ma= rk-mode: t

Recent input:
: r e p o r t - e m a c s - b u g RET
Recent messages:
("emacs" ".emacs")
Loading = term/xterm...done
For information about GNU Emacs and the GNU system, type C-h C-a.
delete= -backward-char: Text is read-only [2 times]

Load-path shadows:
~/= .emacs.d/evil/lib/ert hides /usr/local/share/emacs/24.3/lisp/emacs-lisp/ert=

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822= mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 m= ailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-= utils
shell pcomplete comint regexp-opt ansi-color evil evil-integration
warni= ngs evil-maps evil-commands ffap url-parse auth-source eieio
byte-opt by= tecomp byte-compile cconv gnus-util time-date mm-util
mail-prsvr passwor= d-cache url-vars evil-types evil-search evil-ex
evil-macros evil-repeat evil-states evil-core advice advice-preload
evil= -common windmove rect evil-digraphs evil-vars ring undo-tree derived
eas= y-mmode help-fns cl-macs gv diff cl cl-lib edmacro kmacro server
ediff-h= ook vc-hooks lisp-float-type tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer jit-lock font-lock syntax
facem= enu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibeta= n thai tai-viet lao korean japanese hebrew greek romanian slovak
czech e= uropean ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-fa= ce macroexp files text-properties overlay sha1 md5 base64 format
env cod= e-pages mule custom widget hashtable-print-readable backquote
make-netwo= rk-process multi-tty emacs)
--001a11c2f27a6cb00104ed4d5fea-- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 13 11:52:13 2013 Received: (at 16117) by debbugs.gnu.org; 13 Dec 2013 16:52:13 +0000 Received: from localhost ([127.0.0.1]:48747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrVyG-0006ge-08 for submit@debbugs.gnu.org; Fri, 13 Dec 2013 11:52:12 -0500 Received: from mail-ie0-f182.google.com ([209.85.223.182]:43688) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrUwP-0004zc-NI for 16117@debbugs.gnu.org; Fri, 13 Dec 2013 10:46:14 -0500 Received: by mail-ie0-f182.google.com with SMTP id as1so3041063iec.27 for <16117@debbugs.gnu.org>; Fri, 13 Dec 2013 07:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/F9Szn7bq22JqAFnDNlwNl9preSK7I5i0qfSgXbfAEQ=; b=a5tfks4Z18U9e9XJB0YBI1lwdUrhVJW7n4hVdjp1ctkhO/Txc7q3MqpfmFx7QUt7+3 GZ913jBYEc/JWedaCrjNL0GtOnJBn6J6smvsD6AaQ91JCs7sSGF20C+ZYqic3zuZ4g3q z4m6K0ewC9CiZ42ghpGauxcNH0kO3PapoRFN8aBKS0zLkfbXT2PQnp9fV9ACn3z+Kd7b PnyOgOx2ilIcU5wyj339PxfTPr3FF8Ct+WmFt2NjLjhymqCb9na70TLtLQ5+ng5j9ydf dGdhc5by7vEZFFFEwlBwxfRVUS11XfJUfjNYJ9ar0qkE7vO0vHpsBM82UybA+4MUkZg7 cXjw== MIME-Version: 1.0 X-Received: by 10.50.23.103 with SMTP id l7mr3776029igf.3.1386949572890; Fri, 13 Dec 2013 07:46:12 -0800 (PST) Received: by 10.64.241.70 with HTTP; Fri, 13 Dec 2013 07:46:12 -0800 (PST) Date: Fri, 13 Dec 2013 10:46:12 -0500 Message-ID: Subject: Patch for Emacsclient Unwanted Warning From: Scott Turner To: 16117@debbugs.gnu.org Content-Type: multipart/alternative; boundary=089e0158aaba9d3b4104ed6c5c3a X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 16117 X-Mailman-Approved-At: Fri, 13 Dec 2013 11:52:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --089e0158aaba9d3b4104ed6c5c3a Content-Type: text/plain; charset=ISO-8859-1 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). *** emacsclient.c Tue Jan 1 15:37:17 2013 --- emacsclient-nomsg.c Fri Dec 13 10:05:30 2013 *************** *** 1002,1015 **** /* Open up an AF_INET socket. */ if ((s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { ! sock_err_message ("socket"); return INVALID_SOCKET; } /* Set up the socket. */ if (connect (s, (struct sockaddr *) &server, sizeof server) < 0) { ! sock_err_message ("connect"); return INVALID_SOCKET; } --- 1002,1027 ---- /* Open up an AF_INET socket. */ if ((s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { ! /* ! * If we have an alternate editor specified, then a socket error ! * isn't really an "error" (because we'll end up invoking the ! * alternate editor) so if asked we'll be quiet about this error ! * message. ! * ! */ ! if (!quiet || !alternate_editor) { ! sock_err_message ("socket"); ! }; return INVALID_SOCKET; } /* Set up the socket. */ if (connect (s, (struct sockaddr *) &server, sizeof server) < 0) { ! /* See comment above for rationale about showing/not showing err */ ! if (!quiet || !alternate_editor) { ! sock_err_message ("connect"); ! }; return INVALID_SOCKET; } --089e0158aaba9d3b4104ed6c5c3a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In emacsclient, if an existing Emacs server cann= ot be found and an alternate editor is specified, the alternate editor is s= tarted.=A0 Along the way, emacsclient generates a warning that the server c= annot be found.

On Windows, this warning is a pop-up dialog box that must be dism= issed by the user.=A0 This is an unwanted interruption, and irrelevant, sin= ce the user has already indicated by using the --alternated-editor option h= ow to handle this situation.

The patch below suppresses this warning when the user has specifi= ed both the --quiet option and the --alternate-editor option.=A0 The reason= ing is that --quiet mutes all messages on success, and that because the --a= lternate-editor has been specified, this message is not reporting an error.= =A0 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).

*** emacsclient.c=A0=A0=A0 Tue Jan=A0 1 15:37:17 2013
--- emacsclien= t-nomsg.c=A0=A0=A0 Fri Dec 13 10:05:30 2013
***************
*** 1002,= 1015 ****
=A0=A0=A0 /* Open up an AF_INET socket.=A0 */
=A0=A0=A0 if = ((s =3D socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
=A0=A0=A0=A0=A0 {
!=A0=A0=A0=A0=A0=A0 sock_err_message ("socket&quo= t;);
=A0=A0=A0=A0=A0=A0=A0 return INVALID_SOCKET;
=A0=A0=A0=A0=A0 }=A0
=A0=A0=A0 /* Set up the socket.=A0 */
=A0=A0=A0 if (connect (s= , (struct sockaddr *) &server, sizeof server) < 0)
=A0=A0=A0=A0=A0 {
!=A0=A0=A0=A0=A0=A0 sock_err_message ("connect&qu= ot;);
=A0=A0=A0=A0=A0=A0=A0 return INVALID_SOCKET;
=A0=A0=A0=A0=A0 }<= br>=A0
--- 1002,1027 ----
=A0=A0=A0 /* Open up an AF_INET socket.=A0= */
=A0=A0=A0 if ((s =3D socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) <= ; 0)
=A0=A0=A0=A0=A0 {
!=A0=A0=A0=A0=A0=A0 /*
!=A0=A0=A0=A0=A0=A0=A0 * If = we have an alternate editor specified, then a socket error
!=A0=A0=A0=A0= =A0=A0=A0 * isn't really an "error" (because we'll end up= invoking the
!=A0=A0=A0=A0=A0=A0=A0 * alternate editor) so if asked we&= #39;ll be quiet about this error
!=A0=A0=A0=A0=A0=A0=A0 * message.
!=A0=A0=A0=A0=A0=A0=A0 *
!=A0=A0=A0= =A0=A0=A0=A0 */=A0=A0=A0 =A0
!=A0=A0=A0=A0=A0=A0 if (!quiet || !alternat= e_editor) {
! =A0=A0=A0 sock_err_message ("socket");
!=A0= =A0=A0=A0=A0=A0 };
=A0=A0=A0=A0=A0=A0=A0 return INVALID_SOCKET;
=A0= =A0=A0=A0=A0 }
=A0
=A0=A0=A0 /* Set up the socket.=A0 */
=A0=A0=A0 if (connect (s, (struct sockaddr *) &server, sizeof server) &= lt; 0)
=A0=A0=A0=A0=A0 {
!=A0=A0=A0=A0=A0=A0 /* See comment above for= rationale about showing/not showing err */
!=A0=A0=A0=A0=A0=A0 if (!qui= et || !alternate_editor) {
! =A0=A0=A0 sock_err_message ("connect&q= uot;);
!=A0=A0=A0=A0=A0=A0 };
=A0=A0=A0=A0=A0=A0=A0 return INVALID_SOCKET;
= =A0=A0=A0=A0=A0 }
=A0

--089e0158aaba9d3b4104ed6c5c3a-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 11:02:08 2019 Received: (at 16117) by debbugs.gnu.org; 26 Jun 2019 15:02:08 +0000 Received: from localhost ([127.0.0.1]:36786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg9R1-0003Ng-K2 for submit@debbugs.gnu.org; Wed, 26 Jun 2019 11:02:07 -0400 Received: from quimby.gnus.org ([80.91.231.51]:50422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg9R0-0003Lt-Ae for 16117@debbugs.gnu.org; Wed, 26 Jun 2019 11:02:06 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hg9Qv-00012R-RF; Wed, 26 Jun 2019 17:02:04 +0200 From: Lars Ingebrigtsen To: Scott Turner Subject: Re: bug#16117: Patch for Emacsclient Unwanted Warning References: Date: Wed, 26 Jun 2019 17:02:01 +0200 In-Reply-To: (Scott Turner's message of "Fri, 13 Dec 2013 10:46:12 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Scott Turner 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16117 Cc: 16117@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Scott Turner 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 11:02:11 2019 Received: (at control) by debbugs.gnu.org; 26 Jun 2019 15:02:11 +0000 Received: from localhost ([127.0.0.1]:36789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg9R5-0003QQ-0F for submit@debbugs.gnu.org; Wed, 26 Jun 2019 11:02:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:50436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg9R3-0003Oo-AZ for control@debbugs.gnu.org; Wed, 26 Jun 2019 11:02:09 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hg9R0-00012Z-O9 for control@debbugs.gnu.org; Wed, 26 Jun 2019 17:02:08 +0200 Date: Wed, 26 Jun 2019 17:02:06 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16117 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16117 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16117 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 18:23:22 2020 Received: (at 16117) by debbugs.gnu.org; 12 Aug 2020 22:23:22 +0000 Received: from localhost ([127.0.0.1]:45799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5z9W-00077i-Fr for submit@debbugs.gnu.org; Wed, 12 Aug 2020 18:23:22 -0400 Received: from mail-yb1-f179.google.com ([209.85.219.179]:34265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5z9V-00077H-4S for 16117@debbugs.gnu.org; Wed, 12 Aug 2020 18:23:21 -0400 Received: by mail-yb1-f179.google.com with SMTP id c9so2232047ybq.1 for <16117@debbugs.gnu.org>; Wed, 12 Aug 2020 15:23:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=01U8aof++FePDmXbrayRjnUgH53lHn52/2EX+Th7S0g=; b=ptUKJrZbZK0izNZL3hPCmgWSLYQztjCWJ39nE2XTCkFN9ZmqNLYL0+44iq2ApCw1a/ k1DogllRY3Ceagn0oXoLSd74DsDQdrFcvR5rRZze/RO8XggnoQvpta4u5O+CefpXPpUv g3092QpB3mUJXkWXUMkZZ4c5h7KJkN6OM+dhMaYHYhKv5Mq2D0UFyH7LETrsdj4KgNvr /6hnjTs8aN/gHFhrTzMo9/bQE+uNs/pUxmOUFyhjedxyMS0B9zglUW9FZBRizX9ySUZQ BlfLjr190Y0Sxg7CZgcpb0BvQBi5iXj4PrIwhsY5mWkNB6S/w/4biudvg4uOU8YS2sP8 QW4Q== X-Gm-Message-State: AOAM530/FxJ9i6gUZkzSv1Za7kkV5aZ0wUJhAPkEAwdi5GS3IxbzL3LB 7jDPC64YR/OdQ3FYH6nHehG6vqQEHw2s/EjAQBI= X-Google-Smtp-Source: ABdhPJztN2/uncFzLQTqQvc2w+1QY/Nsok2M7VVZRuRnhw7Ed6hZsK6dC2JVEAdTycWad6g6uzzaUP9d64xVgJinXus= X-Received: by 2002:a25:b290:: with SMTP id k16mr2256702ybj.389.1597270995751; Wed, 12 Aug 2020 15:23:15 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 12 Aug 2020 15:23:15 -0700 From: Stefan Kangas In-Reply-To: (Lars Ingebrigtsen's message of "Wed, 26 Jun 2019 17:02:01 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 12 Aug 2020 15:23:15 -0700 Message-ID: Subject: Re: bug#16117: Patch for Emacsclient Unwanted Warning To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16117 Cc: 16117@debbugs.gnu.org, Scott Turner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Scott Turner 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? I agree, it makes sense to not show the error message in this case. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 04:30:26 2020 Received: (at 16117) by debbugs.gnu.org; 13 Aug 2020 08:30:26 +0000 Received: from localhost ([127.0.0.1]:46749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68d0-0003mj-58 for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:30:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68cy-0003fy-JM for 16117@debbugs.gnu.org; Thu, 13 Aug 2020 04:30:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=K61+OXfQI8cSlNVZxtaiBhOAVFMxI4kqOpnzG7uaf9E=; b=tnAdZkZ1T2GOqkSdACsxQHx76O ScT4xW/GDaFtnTEBpiO2TDc1gRD6l3HeBbAVhq50wIesC2kMfBQNbgetPIt3Q3rv+uP7jEkyd0Oh6 cwDRADPCiRd77L6d2tbU2lhICN3xh1dgBiodoUW+uzij5/N8/bykRxlhkC1bxlXIlBD8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k68cp-00040u-Ch; Thu, 13 Aug 2020 10:30:17 +0200 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#16117: Patch for Emacsclient Unwanted Warning References: Date: Thu, 13 Aug 2020 10:30:13 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 12 Aug 2020 15:23:15 -0700") Message-ID: <87eeobhrsa.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: > I agree, it makes sense to not show the error message in this case. OK, I've now pushed a fix similar to the suggested patch to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16117 Cc: 16117@debbugs.gnu.org, Scott Turner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > I agree, it makes sense to not show the error message in this case. OK, I've now pushed a fix similar to the suggested patch to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 04:30:32 2020 Received: (at control) by debbugs.gnu.org; 13 Aug 2020 08:30:32 +0000 Received: from localhost ([127.0.0.1]:46752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68d6-0003tG-GY for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:30:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68d4-0003mJ-Tv for control@debbugs.gnu.org; Thu, 13 Aug 2020 04:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LVzb8XocGK2bHX9t4bxPN0GCCx6En2IFtygWX0fPtEQ=; b=QyLcywAsXtG5suQtROlqVY54h/ 44n6RYq8ULXctj64p+qRRFvXaxtwo7gfnMG2scxZP4S/ba8hME+DhIPnWg+lQ0Xpl/F5lmhTs2DG9 GGjHUQJiFkT2XzG5S2cvqBM3xa0vr+FbH356I/Owhmlj/pYvejsg6xn9pn6+12eZyKqc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k68cx-000414-5g for control@debbugs.gnu.org; Thu, 13 Aug 2020 10:30:25 +0200 Date: Thu, 13 Aug 2020 10:30:21 +0200 Message-Id: <87d03vhrs2.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16117 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16117 fixed close 16117 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16117 fixed close 16117 28.1 quit From unknown Thu Jun 19 14:05:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Sep 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator