From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi 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: Tue, 25 Apr 2017 14:22:55 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11401a1a63c5b5054dfe766e X-Trace: blaine.gmane.org 1493130264 9339 195.159.176.226 (25 Apr 2017 14:24:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2017 14:24:24 +0000 (UTC) To: 26654@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 25 16:24:17 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 1d31O1-00026z-Bv for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Apr 2017 16:24:13 +0200 Original-Received: from localhost ([::1]:49702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d31O3-0005jZ-Qk for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Apr 2017 10:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d31Nv-0005iO-SI for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:24:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d31Nq-0001Rv-6n for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:24:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d31Nq-0001Rr-3O for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d31Np-0007ts-Qt for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Apr 2017 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.149313020430318 (code B ref -1); Tue, 25 Apr 2017 14:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Apr 2017 14:23:24 +0000 Original-Received: from localhost ([127.0.0.1]:39892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d31NE-0007sw-G4 for submit@debbugs.gnu.org; Tue, 25 Apr 2017 10:23:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d31NC-0007se-Et for submit@debbugs.gnu.org; Tue, 25 Apr 2017 10:23:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d31N6-0001HG-AV for submit@debbugs.gnu.org; Tue, 25 Apr 2017 10:23:17 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d31N6-0001HA-6E for submit@debbugs.gnu.org; Tue, 25 Apr 2017 10:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d31N0-0005MK-Se for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:23:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d31My-0001Fn-VM for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:23:09 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:36359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d31My-0001FU-Mt for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 10:23:08 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id c80so91574728lfh.3 for ; Tue, 25 Apr 2017 07:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eoeLyPzD8OvT94T4Uycu8k0OOYwj3gJ8OPdhXYW4HI4=; b=XtI/zBvGaWpKiEpnURIVN99fmLA0gfhjQ+nNPbuOsgc45HyhOLEE4GKmMR78wWwqRa eXQIXscOyD1ilGp0PPRjYF4XnGU+GYdvO7/xgI0yR2wjLVkx+uR0IEnbPqeFUd5+r/U/ TIQdcCHiGVBtdROyacp88u8slOpkaDaJiJ32onIOc4rfK84EuwPzZ8dH+MN9BGfWr1se FDZlzSoBgEho0MLjvhpGCeN7yADHekgEDs+/t/79P0OKhFSLYE8mC3CcRsCM9Q9Aju93 jvnjoGEYpGYS+TcQzBt1n+sFwzVqfm5VqGx2AWXTUKEQ0VgH5bOgRxWgF7tL6adO3QHP cQgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eoeLyPzD8OvT94T4Uycu8k0OOYwj3gJ8OPdhXYW4HI4=; b=C6ripKZ4Yqu5waI1E55oTWlYkmI0UTbjzgUKg0kstkOAycb7Ba+rGBUXfoqkVjMjsf Ie2oPct/k0Gi723/MoDSYk17P3fIEnMQ/AuUuLU0Jg4CQGgz9QkUX0q5zzlJF1kge4Tx OnJ3e0P8uMaNffRKi8FcXiq66wpbHhBr+IUWk5kHdeppu5CIZtb6I2WZ8nFyaGTIvUPT eamTWUiYc6gXz3HZhhyIVV0H3IsJJzwEUh8pRtRNLzFqbwlzXRXjIuAi6XHGJ9Ta6WSo vktWJGJsYTFKNguU1RN1aAZ04CHRQobj+kI7Wj2xig+xIzAJZLE1GvepU1MfIKM3i5K0 ZcnQ== X-Gm-Message-State: AN3rC/7QaVPBOo1LdoBAqpfeHmjgwMOow5k+a3xfiRPUwHGB6nBkgUVv 9uU9DQ2ql5AkVwsfCcEokHIh7fTg9w== X-Received: by 10.25.150.144 with SMTP id y138mr2822180lfd.167.1493130186833; Tue, 25 Apr 2017 07:23:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:131960 Archived-At: --001a11401a1a63c5b5054dfe766e Content-Type: text/plain; charset=UTF-8 Hello, 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). I have noticed that emacsclient does not care if input is not coming from tty. So this bug report is to request emacs to behave the same way. I am calling this a feature request because I see this behavior at least from emacs 24.3 onwards. -- Kaushal Modi --001a11401a1a63c5b5054dfe766e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

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:

=C2=A0 =C2=A0 echo "foo" | emacs -Q -nw

If I try to do that at the moment, I get
=C2=A0 =C2=A0 emacs: standard input is not a tty
So this is a feature request to make emacs ignore if standard i= nput is coming in through another process and not tty. The eless script sav= es the input from pipe to a temp file and opens that in "emacs -Q -nw&= quot; by default. So emacs does not need addition of a feature to read dire= ctly from STDIN (as the bash wrapper does it for me).

<= div>I have noticed that emacsclient does not care if input is not coming fr= om tty. So this bug report is to request emacs to behave the same way.

I am calling this a feature request because I see this= behavior at least from emacs 24.3 onwards.
-- =

Kaushal Mo= di

--001a11401a1a63c5b5054dfe766e--