From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25708: 25.1.91; Allow users to inhibit printing for 'emacsclient -c -t' Date: Mon, 20 Feb 2017 05:29:51 +0200 Message-ID: <83efytpmj4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487561416 16490 195.159.176.226 (20 Feb 2017 03:30:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 03:30:16 +0000 (UTC) Cc: 25708@debbugs.gnu.org, alexhutcheson@google.com To: peder@klingenberg.no (Peder O. Klingenberg) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 20 04:30:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfefv-0003U8-7q for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 04:30:07 +0100 Original-Received: from localhost ([::1]:35902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfeg1-0002ph-0I for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2017 22:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfefu-0002oW-H3 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 22:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfefr-0006KC-Ca for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 22:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfefr-0006K0-8y for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 22:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfefr-00020h-0R for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 22:30:03 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 25708-submit@debbugs.gnu.org id=B25708.14875613697657 (code B ref 25708); Mon, 20 Feb 2017 03:30:02 +0000 Original-Received: (at 25708) by debbugs.gnu.org; 20 Feb 2017 03:29:29 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: (peder@klingenberg.no) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129562 Archived-At: > 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.