bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44983: Truncate long lines of grep output


From: Dmitry Gutov
Subject: bug#44983: Truncate long lines of grep output
Date: Tue, 8 Dec 2020 21:15:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 08.12.2020 07:35, Richard Stallman wrote:
What is xref-search?

We don't actually employ such a notion, but if I was asked to define it, it would be the act of using a command based on xref-matches-in-files (which see). The main thing that separates that from 'M-x grep', though, is the implementation approach.

Is this something I could use instead of cut, to truncate
long lines of grep output?

You can use the commands based on it. And we could change the implementation of the aforementioned function that it would "cut" such long lines. In that case, the cutting could be performed using Emacs Lisp. 'cut' could still be used instead, though. Or 'ripgrep' could be instructed to do that.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]