GNU bug report logs - #44983
Truncate long lines of grep output

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 1 Dec 2020 08:56:01 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: rms <at> gnu.org
Cc: eliz <at> gnu.org, 44983 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: bug#44983: Truncate long lines of grep output
Date: Tue, 8 Dec 2020 21:15:37 +0200
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.




This bug report was last modified 3 years and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.