I followed https://unix.stackexchange.com/a/43460/674: after
$ locate -i linux | less
I type g|$emacs - in less, but nothing is opened in Emacs, and the terminals says:
emacs: standard input is not a tty
What does that mean?
g|$emacs -nw -  doesn't work either. Btw, I want to use emacs in terminal not its GUI. 
what shall I do then?



ginstead of aqbefore that pipe?lessand then open it in emacs. It doesn't look like that is what you are trying here, so which method are you attempting to use?vimin a similar way and it works! ;)vimbeatsemacson that topic : if this is right,emacscan't read from stdin.