From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Alex Hutcheson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2017 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 25708@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1487015210981 (code B ref -1); Mon, 13 Feb 2017 19:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2017 19:46:50 +0000 Received: from localhost ([127.0.0.1]:38849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdMaI-0000Fl-86 for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMaG-0000FZ-LC for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMaA-0003jF-1q for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:43 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa9-0003jB-Uh for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa8-0007Ta-K7 for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa7-0003iZ-Kf for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:40 -0500 Received: from mail-ua0-x249.google.com ([2607:f8b0:400c:c08::249]:34915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa7-0003iL-FK for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:39 -0500 Received: by mail-ua0-x249.google.com with SMTP id d5so1326340uag.2 for ; Mon, 13 Feb 2017 11:46:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to; bh=R7jNsnd0WsiLisO3IRDL/OQSPCfKOL0w0tTywxLRsD4=; b=TBld/lIzc8UqpF7Jz58pBTdeHww0Q5qjnS5Zg4wcR10cG69LEoAqXTgsNlBy2AFLb6 FEG0jqwf+PLled3bpvYmCjaLzxNPwR7dzcTtswqR55xSeEDaZiD5ObYehWw/Y8G180M/ KBa9oafH29m4kx39MFD3IbOQwgA9MYERiQPQnUbwLrxqH6gkRbJpYSoeKrfqVia+mF0O yMDKcoHfqewwjxcZIiZ3KVhi44pBZV1Nax0UlGEOysRY8LuTNPP2vaEzdhmzG8wu6eqK Rd8TRGcwpcnKU+nRbyGFgqLyTRBh55toJFhn7dYdnXRR9d1NbhxvTFyt6lNM0j5pXqbo etyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to; bh=R7jNsnd0WsiLisO3IRDL/OQSPCfKOL0w0tTywxLRsD4=; b=Th63qwGEF/ZPK4p6xpt7A1HT3ALFWoZ2ssfuFVgwzc4tnLghyJrBbNEBMsoFXq7B6P 3n1n1OfHp+dJ4tg+lT5PLRUd4sqSvH3QPGgwYTqlVznSFRU9WCRzBfxxNr19yXzDsp+t Y6+AfzmTMkZqzpoueBnrostEgF3hjq9Tu/U+kCmF6X429Gx6PB+kU21UAqkVMmqeByud 4HWp5xNtQ9bGriri2wU+YHao9qlpF3FiBlt9tRJEfti9MNAWuKXXgHa5AMhh/Bja+1hq Qp0dRUKXnh24kW9ntUPEkApFKMUPpwnDTP2msBPhbAq4WjbEVZeshHK7DJJNtSv4Y93s kElg== X-Gm-Message-State: AMke39kwG5SxVOBfoix9DPk2LcYdPFJ7KA3rpXBkAZ3EzLZir48/I+b6jKY8B/YoZgkSm8EB+WkdpX7bnn7mN/Y5i9mm3QCxTFQc6qbwM8MnNbVduWqmp7yF2D9mKmQb9XM/QLUtB+NlX2VM/nBSo1eTUa0wHHGay9d4/hq8TnSCjBuT9hl+TTJtw90x0e1Lw/A27w3r3Q== X-Received: by 10.31.92.83 with SMTP id q80mr6632521vkb.14.1487015196331; Mon, 13 Feb 2017 11:46:36 -0800 (PST) Date: Mon, 13 Feb 2017 14:46:34 -0500 Message-Id: Mime-Version: 1.0 From: Alex Hutcheson Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) Sometimes I want to eval some elisp at the command line exclusively to set up some buffers for me to work with in a new frame. For example, to diff two files, I often do: emacsclient -c -e '(ediff "fileA" "fileB") This works, but emacsclient annoyingly prints the result of the eval'ed expression to stdout. In this case, I'll get: # This output is annoying, and it can't be redirected (`emacsclient -c' on a terminal fail to launch if stdout is redirected, for obvious reasons). It would be great if emacsclient had a way to inhibit printing the result, for cases where the user is only eval'ing the expressions for their side effects. From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2017 20:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alex Hutcheson Cc: 25708@debbugs.gnu.org Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148753767931490 (code B ref 25708); Sun, 19 Feb 2017 20:55:02 +0000 Received: (at 25708) by debbugs.gnu.org; 19 Feb 2017 20:54:39 +0000 Received: from localhost ([127.0.0.1]:46531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYVC-0008Bp-U4 for submit@debbugs.gnu.org; Sun, 19 Feb 2017 15:54:39 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:56541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYVB-0008Bh-JS for 25708@debbugs.gnu.org; Sun, 19 Feb 2017 15:54:38 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfYV0-0000P7-Kz; Sun, 19 Feb 2017 21:54:33 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id 531D41710FB2; Sun, 19 Feb 2017 21:54:22 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: Date: Sun, 19 Feb 2017 21:54:22 +0100 In-Reply-To: (Alex Hutcheson's message of "Mon, 13 Feb 2017 14:46:34 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) --=-=-= Content-Type: text/plain Alex Hutcheson writes: > It would be great if emacsclient had a way to inhibit printing the > result, for cases where the user is only eval'ing the expressions for > their side effects. Emacsclient claims to have that functionality already. From the usage-message: -q, --quiet Don't display messages on success This should, in my opinion, cover the case of successfully eval-ing forms. However, -q currently has no effect on output from emacs, it only inhibits messages about connecting to emacs. The attached patch should prevent emacsclient from printing non-error output from emacs to the terminal. With this the terminal stays quiet after exiting the client frame when I do "emacsclient -q -c -e '(+ 2 3)'". Without the -q, the terminal prints 5 as before. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Extend-emacsclient-quiet-to-cover-eval-output.patch >From 6d3e185a9ddacd94b8950775e3fb056c568fc66d Mon Sep 17 00:00:00 2001 From: "Peder O. Klingenberg" Date: Sun, 19 Feb 2017 20:59:14 +0100 Subject: [PATCH] Extend emacsclient --quiet to cover eval output * lib-src/emacsclient.c (main): Extend --quiet flag to suppress printing of eval-results. (Bug#25708) --- lib-src/emacsclient.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 70709ecec0..65ea5541b8 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -1860,19 +1860,25 @@ main (int argc, char **argv) else if (strprefix ("-print ", p)) { /* -print STRING: Print STRING on the terminal. */ - str = unquote_argument (p + strlen ("-print ")); - if (needlf) - printf ("\n"); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; - } + if (!quiet) + { + str = unquote_argument (p + strlen ("-print ")); + if (needlf) + printf ("\n"); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } + } else if (strprefix ("-print-nonl ", p)) { /* -print-nonl STRING: Print STRING on the terminal. Used to continue a preceding -print command. */ - str = unquote_argument (p + strlen ("-print-nonl ")); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + if (!quiet) + { + str = unquote_argument (p + strlen ("-print-nonl ")); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } } else if (strprefix ("-error ", p)) { -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 19 15:55:56 2017 Received: (at control) by debbugs.gnu.org; 19 Feb 2017 20:55:56 +0000 Received: from localhost ([127.0.0.1]:46538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYWS-0008EB-HG for submit@debbugs.gnu.org; Sun, 19 Feb 2017 15:55:56 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:56549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYWQ-0008E2-Ra for control@debbugs.gnu.org; Sun, 19 Feb 2017 15:55:55 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfYWK-0000UT-DV for control@debbugs.gnu.org; Sun, 19 Feb 2017 21:55:53 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id 1EF501710FDC; Sun, 19 Feb 2017 21:55:44 +0100 (CET) To: control@debbugs.gnu.org From: peder@klingenberg.no (Peder O. Klingenberg) Subject: control message for bug #25708 Message-Id: <20170219205545.1EF501710FDC@modesty.localdomain> Date: Sun, 19 Feb 2017 21:55:44 +0100 (CET) X-Spam-Score: -2.9 (--) X-SRS: Sender address rewritten from to by tarrant.klingenberg.no. X-Spam-Score: 0.4 (/) 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: 0.4 (/) tags 25708 patch From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 03:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: peder@klingenberg.no (Peder O. Klingenberg) Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com Reply-To: Eli Zaretskii Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.14875613697657 (code B ref 25708); Mon, 20 Feb 2017 03:30:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 03:29:29 +0000 Received: from localhost ([127.0.0.1]:46711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfefJ-0001zR-2p for submit@debbugs.gnu.org; Sun, 19 Feb 2017 22:29:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfefF-0001zD-EM for 25708@debbugs.gnu.org; Sun, 19 Feb 2017 22:29:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfef7-00067Z-2n for 25708@debbugs.gnu.org; Sun, 19 Feb 2017 22:29:20 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfef6-00067V-Vf; Sun, 19 Feb 2017 22:29:17 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4470 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cfef5-0003tJ-Vx; Sun, 19 Feb 2017 22:29:16 -0500 Date: Mon, 20 Feb 2017 05:29:51 +0200 Message-Id: <83efytpmj4.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (peder@klingenberg.no) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) > From: peder@klingenberg.no (Peder O. Klingenberg) > Date: Sun, 19 Feb 2017 21:54:22 +0100 > Cc: 25708@debbugs.gnu.org > > > It would be great if emacsclient had a way to inhibit printing the > > result, for cases where the user is only eval'ing the expressions for > > their side effects. > > Emacsclient claims to have that functionality already. From the > usage-message: > > -q, --quiet Don't display messages on success > > This should, in my opinion, cover the case of successfully eval-ing > forms. However, -q currently has no effect on output from emacs, it > only inhibits messages about connecting to emacs. > > The attached patch should prevent emacsclient from printing non-error > output from emacs to the terminal. > > With this the terminal stays quiet after exiting the client frame when I > do "emacsclient -q -c -e '(+ 2 3)'". Without the -q, the terminal > prints 5 as before. Thanks, but I think this warrants a separate command-line option, or maybe a special argument to --quiet. Otherwise, it would be an incompatible change in behavior. From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.14875811414325 (code B ref 25708); Mon, 20 Feb 2017 08:59:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 08:59:01 +0000 Received: from localhost ([127.0.0.1]:46855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfjoC-00017h-Ty for submit@debbugs.gnu.org; Mon, 20 Feb 2017 03:59:01 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:60835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfjoB-00017Y-6s for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 03:58:59 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfjny-00057y-TM; Mon, 20 Feb 2017 09:58:55 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id 60B7C1711EC8; Mon, 20 Feb 2017 09:58:43 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: <83efytpmj4.fsf@gnu.org> Date: Mon, 20 Feb 2017 09:58:43 +0100 In-Reply-To: <83efytpmj4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Feb 2017 05:29:51 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) Eli Zaretskii writes: > Thanks, but I think this warrants a separate command-line option, or > maybe a special argument to --quiet. Otherwise, it would be an > incompatible change in behavior. Ok. I'll take a stab at implementing that later today. -- ...Peder... From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148761117828114 (code B ref 25708); Mon, 20 Feb 2017 17:20:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 17:19:38 +0000 Received: from localhost ([127.0.0.1]:47727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfrcg-0007JN-4I for submit@debbugs.gnu.org; Mon, 20 Feb 2017 12:19:38 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:34475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfrce-0007JF-Lo for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 12:19:37 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfrcS-0003p0-2u; Mon, 20 Feb 2017 18:19:30 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id 7652A1713626; Mon, 20 Feb 2017 18:19:20 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: <83efytpmj4.fsf@gnu.org> Date: Mon, 20 Feb 2017 18:19:20 +0100 In-Reply-To: (Peder O. Klingenberg's message of "Mon, 20 Feb 2017 09:58:43 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) --=-=-= Content-Type: text/plain peder@klingenberg.no (Peder O. Klingenberg) writes: > Ok. I'll take a stab at implementing that later today. How about this patch instead of my previous one? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-New-option-u-quell-to-emacsclient.patch >From 6c6f60c200f8bb2ed873cdc8c8ac8e90e090d65f Mon Sep 17 00:00:00 2001 From: "Peder O. Klingenberg" Date: Sun, 19 Feb 2017 20:59:14 +0100 Subject: [PATCH] New option -u / -quell to emacsclient When evaluating expressions for side-effects with emacsclient, the result returned from the server is often useless. These new options allow the user to skip the printing of non-error results. (Bug#25708) * lib-src/emacsclient.c (print_help_and_exit, longopts) (decode_options, main): Implement new option --quell / -u to suppress printing of eval-results. * doc/emacs/misc.texi (emacsclient Options): Document new --quell / -u options. --- doc/emacs/misc.texi | 6 ++++++ etc/NEWS | 4 ++++ lib-src/emacsclient.c | 37 ++++++++++++++++++++++++++----------- 3 files changed, 36 insertions(+), 11 deletions(-) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 091ead1bae..df4c1f717d 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -1847,6 +1847,12 @@ emacsclient Options Do not let @command{emacsclient} display messages about waiting for Emacs or connecting to remote server sockets. +@item -u +@itemx --quell +Do not let @command{emacsclient} display results returned from the +server. Mostly useful in combination with @samp{-e} when the +evaluation performed is for side-effect rather than result. + @item -s @var{server-name} @itemx --socket-name=@var{server-name} Connect to the Emacs server named @var{server-name}. The server name diff --git a/etc/NEWS b/etc/NEWS index 143e4655de..394c1e904c 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -321,6 +321,10 @@ substituted by a home directory by writing it as "/foo:/:/~/file". settings of 'scroll-margin' up to half the window size, instead of always restricting the margin to a quarter of the window. ++++ +** Emacsclient has a new option -u/--quell. The option suppresses +display of non-error return values from the server process. + * Editing Changes in Emacs 26.1 diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 70709ecec0..1bb772be1b 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -118,6 +118,9 @@ int nowait = 0; /* Nonzero means don't print messages for successful operations. --quiet. */ int quiet = 0; +/* Nonzero means don't print values returned from emacs. --quell */ +int quell = 0; + /* Nonzero means args are expressions to be evaluated. --eval. */ int eval = 0; @@ -160,6 +163,7 @@ struct option longopts[] = { { "no-wait", no_argument, NULL, 'n' }, { "quiet", no_argument, NULL, 'q' }, + { "quell", no_argument, NULL, 'u' }, { "eval", no_argument, NULL, 'e' }, { "help", no_argument, NULL, 'H' }, { "version", no_argument, NULL, 'V' }, @@ -469,9 +473,9 @@ decode_options (int argc, char **argv) { int opt = getopt_long_only (argc, argv, #ifndef NO_SOCKETS_IN_FILE_SYSTEM - "VHneqa:s:f:d:F:tc", + "VHnequa:s:f:d:F:tc", #else - "VHneqa:f:d:F:tc", + "VHnequa:f:d:F:tc", #endif longopts, 0); @@ -519,6 +523,10 @@ decode_options (int argc, char **argv) quiet = 1; break; + case 'u': + quell = 1; + break; + case 'V': message (false, "emacsclient %s\n", VERSION); exit (EXIT_SUCCESS); @@ -631,6 +639,7 @@ The following OPTIONS are accepted:\n\ -e, --eval Evaluate the FILE arguments as ELisp expressions\n\ -n, --no-wait Don't wait for the server to return\n\ -q, --quiet Don't display messages on success\n\ +-u, --quell Don't display non-error return values from the server\n\ -d DISPLAY, --display=DISPLAY\n\ Visit the file in the given display\n\ ", "\ @@ -1860,19 +1869,25 @@ main (int argc, char **argv) else if (strprefix ("-print ", p)) { /* -print STRING: Print STRING on the terminal. */ - str = unquote_argument (p + strlen ("-print ")); - if (needlf) - printf ("\n"); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; - } + if (!quell) + { + str = unquote_argument (p + strlen ("-print ")); + if (needlf) + printf ("\n"); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } + } else if (strprefix ("-print-nonl ", p)) { /* -print-nonl STRING: Print STRING on the terminal. Used to continue a preceding -print command. */ - str = unquote_argument (p + strlen ("-print-nonl ")); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + if (!quell) + { + str = unquote_argument (p + strlen ("-print-nonl ")); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } } else if (strprefix ("-error ", p)) { -- 2.11.0 --=-=-= Content-Type: text/plain -- ...Peder... --=-=-=-- From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: peder@klingenberg.no (Peder O. Klingenberg) Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com Reply-To: Eli Zaretskii Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148761210429557 (code B ref 25708); Mon, 20 Feb 2017 17:36:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 17:35:04 +0000 Received: from localhost ([127.0.0.1]:47732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfrrc-0007gf-Jw for submit@debbugs.gnu.org; Mon, 20 Feb 2017 12:35:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfrra-0007g8-QU for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 12:35:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfrrU-0007I4-ET for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 12:34:57 -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.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfrrR-0007GX-6x; Mon, 20 Feb 2017 12:34:53 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4972 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cfrrQ-0001Iw-GW; Mon, 20 Feb 2017 12:34:52 -0500 Date: Mon, 20 Feb 2017 19:34:44 +0200 Message-Id: <831suspxzf.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (peder@klingenberg.no) References: <83efytpmj4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) > From: peder@klingenberg.no (Peder O. Klingenberg) > Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com > Date: Mon, 20 Feb 2017 18:19:20 +0100 > > How about this patch instead of my previous one? Looks good (but see minor comments below). Let's wait for a few days to give others a chance to comment. > +/* Nonzero means don't print values returned from emacs. --quell */ Each comment should end with a period and 2 spaces. Like this: > /* Nonzero means args are expressions to be evaluated. --eval. */ > +-u, --quell Don't display non-error return values from the server\n\ Do we really need the "non-error" part here? Errors don't manifest themselves via return values, I think. Thanks. From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: peder@klingenberg.no (Peder O. Klingenberg) Cc: 25708@debbugs.gnu.org, Eli Zaretskii , alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148761386032260 (code B ref 25708); Mon, 20 Feb 2017 18:05:01 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 18:04:20 +0000 Received: from localhost ([127.0.0.1]:47749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsJw-0008OG-DG for submit@debbugs.gnu.org; Mon, 20 Feb 2017 13:04:20 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:45716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsJs-0008O4-Dv for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 13:04:17 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3vRs2l2NvWz3hjm1; Mon, 20 Feb 2017 19:04:15 +0100 (CET) Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3vRs2k75mSzvk9L; Mon, 20 Feb 2017 19:04:14 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id MsDtmQpVdSTV; Mon, 20 Feb 2017 19:04:11 +0100 (CET) X-Auth-Info: +ZNWwHdrot/vABgL5mJOMm6fYGS4VMpnrzytYgFFwdrVe0KF+VV68gKAEBP3a1MF Received: from igel.home (ppp-88-217-8-189.dynamic.mnet-online.de [88.217.8.189]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 20 Feb 2017 19:04:11 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id EC38E2C3C39; Mon, 20 Feb 2017 19:04:10 +0100 (CET) From: Andreas Schwab References: <83efytpmj4.fsf@gnu.org> X-Yow: It don't mean a THING if you ain't got that SWING!! Date: Mon, 20 Feb 2017 19:04:10 +0100 In-Reply-To: (Peder O. Klingenberg's message of "Mon, 20 Feb 2017 18:19:20 +0100") Message-ID: <87d1eceo2t.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -0.7 (/) On Feb 20 2017, peder@klingenberg.no (Peder O. Klingenberg) wrote: > Subject: [PATCH] New option -u / -quell to emacsclient Is quell a word? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 18:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Andreas Schwab Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com, peder@klingenberg.no Reply-To: Eli Zaretskii Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.1487614438663 (code B ref 25708); Mon, 20 Feb 2017 18:14:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 18:13:58 +0000 Received: from localhost ([127.0.0.1]:47755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsTG-0000Ac-AZ for submit@debbugs.gnu.org; Mon, 20 Feb 2017 13:13:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsTF-0000AQ-14 for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 13:13:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfsT8-0001Z6-Pq for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 13:13:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfsT3-0001XZ-UT; Mon, 20 Feb 2017 13:13:45 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1080 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cfsT3-0006YI-4w; Mon, 20 Feb 2017 13:13:45 -0500 Date: Mon, 20 Feb 2017 20:13:34 +0200 Message-Id: <83y3x0ohm9.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87d1eceo2t.fsf@linux-m68k.org> (message from Andreas Schwab on Mon, 20 Feb 2017 19:04:10 +0100) References: <83efytpmj4.fsf@gnu.org> <87d1eceo2t.fsf@linux-m68k.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) > From: Andreas Schwab > Cc: Eli Zaretskii , 25708@debbugs.gnu.org, alexhutcheson@google.com > Date: Mon, 20 Feb 2017 19:04:10 +0100 > > On Feb 20 2017, peder@klingenberg.no (Peder O. Klingenberg) wrote: > > > Subject: [PATCH] New option -u / -quell to emacsclient > > Is quell a word? Yes, although not a widely used one. It means "silence" or "subdue". From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Andreas Schwab Cc: 25708@debbugs.gnu.org, Eli Zaretskii , alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.14876146401039 (code B ref 25708); Mon, 20 Feb 2017 18:18:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 18:17:20 +0000 Received: from localhost ([127.0.0.1]:47763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsWW-0000Ge-1c for submit@debbugs.gnu.org; Mon, 20 Feb 2017 13:17:20 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:34676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfsWU-0000GU-F8 for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 13:17:18 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfsWM-0005aH-53; Mon, 20 Feb 2017 19:17:16 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id DC4531713CF7; Mon, 20 Feb 2017 19:17:07 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: <83efytpmj4.fsf@gnu.org> <87d1eceo2t.fsf@linux-m68k.org> Date: Mon, 20 Feb 2017 19:17:07 +0100 In-Reply-To: <87d1eceo2t.fsf@linux-m68k.org> (Andreas Schwab's message of "Mon, 20 Feb 2017 19:04:10 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) Andreas Schwab writes: > Is quell a word? Yes. See for instance: https://www.merriam-webster.com/dictionary/quell From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 18:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.14876153232079 (code B ref 25708); Mon, 20 Feb 2017 18:29:01 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 18:28:43 +0000 Received: from localhost ([127.0.0.1]:47769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfshX-0000XT-5K for submit@debbugs.gnu.org; Mon, 20 Feb 2017 13:28:43 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:34699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfshV-0000XJ-QP for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 13:28:42 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfshL-0005n5-Iw; Mon, 20 Feb 2017 19:28:40 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id 4CA341713DB9; Mon, 20 Feb 2017 19:28:28 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: <83efytpmj4.fsf@gnu.org> <831suspxzf.fsf@gnu.org> Date: Mon, 20 Feb 2017 19:28:28 +0100 In-Reply-To: <831suspxzf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Feb 2017 19:34:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) Eli Zaretskii writes: > Each comment should end with a period and 2 spaces. Like this: Sorry. I'll fix it. > Do we really need the "non-error" part here? Errors don't manifest > themselves via return values, I think. I'm not intimately familiar with the protocol between emacs and emacsclient, but emacsclient handles a number of different return messages from emacs. Two of which (-print and -print-nonl) I made -u apply to. Another possible return message seems to be -error, which also results in stuff being printed by emacsclient (in this case to stderr). -u does not suppress that kind of printing. I thought it worth specifying, but if that path is in practice never used, I can take that wording out. What do people think? -- ...Peder... From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com, peder@klingenberg.no Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148761812713015 (code B ref 25708); Mon, 20 Feb 2017 19:16:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 19:15:27 +0000 Received: from localhost ([127.0.0.1]:47789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cftQk-0003Nr-SN for submit@debbugs.gnu.org; Mon, 20 Feb 2017 14:15:27 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:49764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cftQi-0003Nh-Sy for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 14:15:25 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3vRtcm1f2Wz3hjl1; Mon, 20 Feb 2017 20:15:20 +0100 (CET) Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3vRtcm0GgRzvkFm; Mon, 20 Feb 2017 20:15:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id eUi0G6TGF0Jf; Mon, 20 Feb 2017 20:15:18 +0100 (CET) X-Auth-Info: 67xV4PWq1bXVrEJwpHn27Qqc9MHZhx7S5oDpSuGtd9Rd0jhi8tn1ouc+DLcqsJhN Received: from igel.home (ppp-88-217-8-189.dynamic.mnet-online.de [88.217.8.189]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 20 Feb 2017 20:15:18 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 1F50E2C416C; Mon, 20 Feb 2017 20:15:18 +0100 (CET) From: Andreas Schwab References: <83efytpmj4.fsf@gnu.org> <87d1eceo2t.fsf@linux-m68k.org> <83y3x0ohm9.fsf@gnu.org> X-Yow: I have nostalgia for the late Sixties! In 1969 I left my laundry with a hippie!! During an unauthorized Tupperware party it was chopped & diced! Date: Mon, 20 Feb 2017 20:15:18 +0100 In-Reply-To: <83y3x0ohm9.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Feb 2017 20:13:34 +0200") Message-ID: <878tp0eks9.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -0.7 (/) On Feb 20 2017, Eli Zaretskii wrote: >> From: Andreas Schwab >> Cc: Eli Zaretskii , 25708@debbugs.gnu.org, alexhutcheson@google.com >> Date: Mon, 20 Feb 2017 19:04:10 +0100 >> >> On Feb 20 2017, peder@klingenberg.no (Peder O. Klingenberg) wrote: >> >> > Subject: [PATCH] New option -u / -quell to emacsclient >> >> Is quell a word? > > Yes, although not a widely used one. It means "silence" or "subdue". Then it's not a good word to describe the option. Better would be --suppress-output. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sun Aug 17 22:12:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Andreas Schwab Cc: 25708@debbugs.gnu.org, Eli Zaretskii , alexhutcheson@google.com Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.148762413328987 (code B ref 25708); Mon, 20 Feb 2017 20:56:02 +0000 Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 20:55:33 +0000 Received: from localhost ([127.0.0.1]:47843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfuzd-0007XS-8W for submit@debbugs.gnu.org; Mon, 20 Feb 2017 15:55:33 -0500 Received: from tarrant.klingenberg.no ([80.91.231.253]:35066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfuzb-0007XK-L3 for 25708@debbugs.gnu.org; Mon, 20 Feb 2017 15:55:32 -0500 Received: from [94.102.36.20] (helo=modesty.localdomain) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cfuzO-0001nJ-57; Mon, 20 Feb 2017 21:55:27 +0100 Received: by modesty.localdomain (Postfix, from userid 502) id F27ED17152A3; Mon, 20 Feb 2017 21:55:15 +0100 (CET) From: peder@klingenberg.no (Peder O. Klingenberg) References: <83efytpmj4.fsf@gnu.org> <87d1eceo2t.fsf@linux-m68k.org> <83y3x0ohm9.fsf@gnu.org> <878tp0eks9.fsf@linux-m68k.org> Date: Mon, 20 Feb 2017 21:55:15 +0100 In-Reply-To: <878tp0eks9.fsf@linux-m68k.org> (Andreas Schwab's message of "Mon, 20 Feb 2017 20:15:18 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.9 (--) X-Spam-Score: -0.0 (/) 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: -0.0 (/) --=-=-= Content-Type: text/plain Andreas Schwab writes: > Then it's not a good word to describe the option. Better would be > --suppress-output. I thought it succinctly expressed what the flag did, but I have no objection to --suppress-output. Attached is the latest version of the patch, with all objections raised so far addressed. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-New-option-u-suppress-output-to-emacsclient.patch >From 5db44b3f36eedb26865a7761152fac764eb7c0f7 Mon Sep 17 00:00:00 2001 From: "Peder O. Klingenberg" Date: Sun, 19 Feb 2017 20:59:14 +0100 Subject: [PATCH] New option -u / --suppress-output to emacsclient When evaluating expressions for side-effects with emacsclient, the result returned from the server is often useless. These new options allow the user to skip the printing of non-error results. (Bug#25708) * lib-src/emacsclient.c (print_help_and_exit, longopts) (decode_options, main): Implement new option --suppress-output / -u to suppress printing of eval-results. * doc/emacs/misc.texi (emacsclient Options): Document new --suppress-output / -u options. --- doc/emacs/misc.texi | 6 ++++++ etc/NEWS | 4 ++++ lib-src/emacsclient.c | 37 ++++++++++++++++++++++++++----------- 3 files changed, 36 insertions(+), 11 deletions(-) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 091ead1bae..bcc20a6db1 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -1847,6 +1847,12 @@ emacsclient Options Do not let @command{emacsclient} display messages about waiting for Emacs or connecting to remote server sockets. +@item -u +@itemx --suppress-output +Do not let @command{emacsclient} display results returned from the +server. Mostly useful in combination with @samp{-e} when the +evaluation performed is for side-effect rather than result. + @item -s @var{server-name} @itemx --socket-name=@var{server-name} Connect to the Emacs server named @var{server-name}. The server name diff --git a/etc/NEWS b/etc/NEWS index 143e4655de..c727471e64 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -321,6 +321,10 @@ substituted by a home directory by writing it as "/foo:/:/~/file". settings of 'scroll-margin' up to half the window size, instead of always restricting the margin to a quarter of the window. ++++ +** Emacsclient has a new option -u/--suppress-output. The option +suppresses display of return values from the server process. + * Editing Changes in Emacs 26.1 diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 70709ecec0..7b735dfb05 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -118,6 +118,9 @@ int nowait = 0; /* Nonzero means don't print messages for successful operations. --quiet. */ int quiet = 0; +/* Nonzero means don't print values returned from emacs. --suppress-output. */ +int suppress_output = 0; + /* Nonzero means args are expressions to be evaluated. --eval. */ int eval = 0; @@ -160,6 +163,7 @@ struct option longopts[] = { { "no-wait", no_argument, NULL, 'n' }, { "quiet", no_argument, NULL, 'q' }, + { "suppress-output", no_argument, NULL, 'u' }, { "eval", no_argument, NULL, 'e' }, { "help", no_argument, NULL, 'H' }, { "version", no_argument, NULL, 'V' }, @@ -469,9 +473,9 @@ decode_options (int argc, char **argv) { int opt = getopt_long_only (argc, argv, #ifndef NO_SOCKETS_IN_FILE_SYSTEM - "VHneqa:s:f:d:F:tc", + "VHnequa:s:f:d:F:tc", #else - "VHneqa:f:d:F:tc", + "VHnequa:f:d:F:tc", #endif longopts, 0); @@ -519,6 +523,10 @@ decode_options (int argc, char **argv) quiet = 1; break; + case 'u': + suppress_output = 1; + break; + case 'V': message (false, "emacsclient %s\n", VERSION); exit (EXIT_SUCCESS); @@ -631,6 +639,7 @@ The following OPTIONS are accepted:\n\ -e, --eval Evaluate the FILE arguments as ELisp expressions\n\ -n, --no-wait Don't wait for the server to return\n\ -q, --quiet Don't display messages on success\n\ +-u, --suppress-output Don't display return values from the server\n\ -d DISPLAY, --display=DISPLAY\n\ Visit the file in the given display\n\ ", "\ @@ -1860,19 +1869,25 @@ main (int argc, char **argv) else if (strprefix ("-print ", p)) { /* -print STRING: Print STRING on the terminal. */ - str = unquote_argument (p + strlen ("-print ")); - if (needlf) - printf ("\n"); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; - } + if (!suppress_output) + { + str = unquote_argument (p + strlen ("-print ")); + if (needlf) + printf ("\n"); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } + } else if (strprefix ("-print-nonl ", p)) { /* -print-nonl STRING: Print STRING on the terminal. Used to continue a preceding -print command. */ - str = unquote_argument (p + strlen ("-print-nonl ")); - printf ("%s", str); - needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + if (!suppress_output) + { + str = unquote_argument (p + strlen ("-print-nonl ")); + printf ("%s", str); + needlf = str[0] == '\0' ? needlf : str[strlen (str) - 1] != '\n'; + } } else if (strprefix ("-error ", p)) { -- 2.11.0 --=-=-= Content-Type: text/plain -- ...Peder... --=-=-=-- From unknown Sun Aug 17 22:12:28 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Alex Hutcheson Subject: bug#25708: closed (Re: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t') Message-ID: References: <83bmtqsm9j.fsf@gnu.org> X-Gnu-PR-Message: they-closed 25708 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 25708@debbugs.gnu.org Date: Sat, 25 Feb 2017 08:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1488011642-17581-1" This is a multi-part message in MIME format... ------------=_1488011642-17581-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25708@debbugs.gnu.org. --=20 25708: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25708 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1488011642-17581-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25708-done) by debbugs.gnu.org; 25 Feb 2017 08:33:50 +0000 Received: from localhost ([127.0.0.1]:55141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chXna-0004ZE-Ei for submit@debbugs.gnu.org; Sat, 25 Feb 2017 03:33:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chXnZ-0004Z1-2z for 25708-done@debbugs.gnu.org; Sat, 25 Feb 2017 03:33:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chXnT-0004a9-2X for 25708-done@debbugs.gnu.org; Sat, 25 Feb 2017 03:33:43 -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.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chXnN-0004Yk-6B; Sat, 25 Feb 2017 03:33:37 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1chXnM-0002wN-0x; Sat, 25 Feb 2017 03:33:36 -0500 Date: Sat, 25 Feb 2017 10:33:12 +0200 Message-Id: <83bmtqsm9j.fsf@gnu.org> From: Eli Zaretskii To: peder@klingenberg.no (Peder O. Klingenberg) In-reply-to: (peder@klingenberg.no) Subject: Re: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' References: <83efytpmj4.fsf@gnu.org> <87d1eceo2t.fsf@linux-m68k.org> <83y3x0ohm9.fsf@gnu.org> <878tp0eks9.fsf@linux-m68k.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25708-done Cc: 25708-done@debbugs.gnu.org, schwab@linux-m68k.org, alexhutcheson@google.com 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: peder@klingenberg.no (Peder O. Klingenberg) > Cc: Eli Zaretskii , 25708@debbugs.gnu.org, alexhutcheson@google.com > Date: Mon, 20 Feb 2017 21:55:15 +0100 > > Andreas Schwab writes: > > > Then it's not a good word to describe the option. Better would be > > --suppress-output. > > I thought it succinctly expressed what the flag did, but I have no > objection to --suppress-output. > > Attached is the latest version of the patch, with all objections raised > so far addressed. Thanks, pushed to the master branch. ------------=_1488011642-17581-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Feb 2017 19:46:50 +0000 Received: from localhost ([127.0.0.1]:38849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdMaI-0000Fl-86 for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMaG-0000FZ-LC for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMaA-0003jF-1q for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:43 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa9-0003jB-Uh for submit@debbugs.gnu.org; Mon, 13 Feb 2017 14:46:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa8-0007Ta-K7 for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa7-0003iZ-Kf for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:40 -0500 Received: from mail-ua0-x249.google.com ([2607:f8b0:400c:c08::249]:34915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <3HA2iWA0KDYknyrAu76pur510t11tyr.p1zo7t-t07-rznp5t07.14t@flex--alexhutcheson.bounces.google.com>) id 1cdMa7-0003iL-FK for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 14:46:39 -0500 Received: by mail-ua0-x249.google.com with SMTP id d5so1326340uag.2 for ; Mon, 13 Feb 2017 11:46:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to; bh=R7jNsnd0WsiLisO3IRDL/OQSPCfKOL0w0tTywxLRsD4=; b=TBld/lIzc8UqpF7Jz58pBTdeHww0Q5qjnS5Zg4wcR10cG69LEoAqXTgsNlBy2AFLb6 FEG0jqwf+PLled3bpvYmCjaLzxNPwR7dzcTtswqR55xSeEDaZiD5ObYehWw/Y8G180M/ KBa9oafH29m4kx39MFD3IbOQwgA9MYERiQPQnUbwLrxqH6gkRbJpYSoeKrfqVia+mF0O yMDKcoHfqewwjxcZIiZ3KVhi44pBZV1Nax0UlGEOysRY8LuTNPP2vaEzdhmzG8wu6eqK Rd8TRGcwpcnKU+nRbyGFgqLyTRBh55toJFhn7dYdnXRR9d1NbhxvTFyt6lNM0j5pXqbo etyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to; bh=R7jNsnd0WsiLisO3IRDL/OQSPCfKOL0w0tTywxLRsD4=; b=Th63qwGEF/ZPK4p6xpt7A1HT3ALFWoZ2ssfuFVgwzc4tnLghyJrBbNEBMsoFXq7B6P 3n1n1OfHp+dJ4tg+lT5PLRUd4sqSvH3QPGgwYTqlVznSFRU9WCRzBfxxNr19yXzDsp+t Y6+AfzmTMkZqzpoueBnrostEgF3hjq9Tu/U+kCmF6X429Gx6PB+kU21UAqkVMmqeByud 4HWp5xNtQ9bGriri2wU+YHao9qlpF3FiBlt9tRJEfti9MNAWuKXXgHa5AMhh/Bja+1hq Qp0dRUKXnh24kW9ntUPEkApFKMUPpwnDTP2msBPhbAq4WjbEVZeshHK7DJJNtSv4Y93s kElg== X-Gm-Message-State: AMke39kwG5SxVOBfoix9DPk2LcYdPFJ7KA3rpXBkAZ3EzLZir48/I+b6jKY8B/YoZgkSm8EB+WkdpX7bnn7mN/Y5i9mm3QCxTFQc6qbwM8MnNbVduWqmp7yF2D9mKmQb9XM/QLUtB+NlX2VM/nBSo1eTUa0wHHGay9d4/hq8TnSCjBuT9hl+TTJtw90x0e1Lw/A27w3r3Q== X-Received: by 10.31.92.83 with SMTP id q80mr6632521vkb.14.1487015196331; Mon, 13 Feb 2017 11:46:36 -0800 (PST) Date: Mon, 13 Feb 2017 14:46:34 -0500 Message-Id: Mime-Version: 1.0 Subject: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' From: Alex Hutcheson To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) Sometimes I want to eval some elisp at the command line exclusively to set up some buffers for me to work with in a new frame. For example, to diff two files, I often do: emacsclient -c -e '(ediff "fileA" "fileB") This works, but emacsclient annoyingly prints the result of the eval'ed expression to stdout. In this case, I'll get: # This output is annoying, and it can't be redirected (`emacsclient -c' on a terminal fail to launch if stdout is redirected, for obvious reasons). It would be great if emacsclient had a way to inhibit printing the result, for cases where the user is only eval'ing the expressions for their side effects. ------------=_1488011642-17581-1--