-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong guess about filter mode when running inside Emacs (or Vim) #106
Comments
would be solved with issue 90's --[no]filter option |
Can't believe this is not fixed yet, and that flags like -G get dropped when specified. Workaround: wrap ack in a (python) script that creates a pseudo-terminal on stdin (may not work on non-linux).
|
I get this same error when running ack remotely with sudo: Problems occurs with ahost running versions: but does not occur when running the same remote command against a different server with ack 1.96 Running under Perl 5.8.8. |
Addressed in beyondgrep/ack2#346. |
ack 1.92 decides to go into filter mode when (-p STDIN) is true. Filter mode means that input is taken from stdin and not from files given on the command line. But when running inside Emacs, the condition is true because it's an inferior process, and then nothing happens because Emacs doesn't pipe anything into ack STDIN.
So in such a case we don't want the filter behaviour, and therefore we need a way to forcefully disable filter mode from a command line option.
[problem occured with Emacs 22.3.1 on win32, running ack.el version 0.4]
The text was updated successfully, but these errors were encountered: