unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26654: 26.0.50; Request to add an option to make emacs not care if input is not coming from tty
@ 2017-04-25 14:22 Kaushal Modi
  2017-04-26 10:12 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Modi @ 2017-04-25 14:22 UTC (permalink / raw)
  To: 26654

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1265 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-26 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-25 14:22 bug#26654: 26.0.50; Request to add an option to make emacs not care if input is not coming from tty Kaushal Modi
2017-04-26 10:12 ` Eli Zaretskii
2017-04-26 17:08   ` Kaushal Modi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).