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#26654: 26.0.50; Request to add an option to make emacs not care if input is not coming from tty Date: Wed, 26 Apr 2017 13:12:52 +0300 Message-ID: <837f27pjdn.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1493201691 23550 195.159.176.226 (26 Apr 2017 10:14:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 10:14:51 +0000 (UTC) Cc: 26654@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 12:14:46 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 1d3JyA-00061C-P9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 12:14:46 +0200 Original-Received: from localhost ([::1]:54013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3JyG-0008Ek-LF for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 06:14:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3JxW-0007nv-E9 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 06:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3JxT-0005XS-9X for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 06:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3JxT-0005XN-6C for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 06:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3JxS-0005ae-WD for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 06:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2017 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26654-submit@debbugs.gnu.org id=B26654.149320162121416 (code B ref 26654); Wed, 26 Apr 2017 10:14:02 +0000 Original-Received: (at 26654) by debbugs.gnu.org; 26 Apr 2017 10:13:41 +0000 Original-Received: from localhost ([127.0.0.1]:40587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Jx7-0005ZL-4V for submit@debbugs.gnu.org; Wed, 26 Apr 2017 06:13:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Jx5-0005Z8-1Q for 26654@debbugs.gnu.org; Wed, 26 Apr 2017 06:13:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Jww-0005IB-MJ for 26654@debbugs.gnu.org; Wed, 26 Apr 2017 06:13:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Jww-0005I4-IZ; Wed, 26 Apr 2017 06:13:30 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3558 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d3Jwv-0002eG-Od; Wed, 26 Apr 2017 06:13:30 -0400 In-reply-to: (message from Kaushal Modi on Tue, 25 Apr 2017 14:22:55 +0000) 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:132003 Archived-At: > From: Kaushal Modi > Date: Tue, 25 Apr 2017 14:22:55 +0000 > > I have a bash script eless ( https://github.com/kaushalmodi/eless ) that I would like to use to replace 'less' use > cases. > > I would like to do something like: > > echo "foo" | emacs -Q -nw > > If I try to do that at the moment, I get > > emacs: standard input is not a tty > > So this is a feature request to make emacs ignore if standard input is coming in through another process and > not tty. The eless script saves the input from pipe to a temp file and opens that in "emacs -Q -nw" by default. > So emacs does not need addition of a feature to read directly from STDIN (as the bash wrapper does it for > me). Then why not do something like below instead? echo "foo" && emacs -Q -nw IOW, I don't understand what is the significance of the pipe in this command. > I have noticed that emacsclient does not care if input is not coming from tty. The client doesn't interact with the user, it only instructs the server to visit the file. Emacs, OTOH, does need to interact.