unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: "Non-standard UI",
Date: Sun, 08 Mar 2020 02:53:19 +0200	[thread overview]
Message-ID: <874kuzk694.fsf@mail.linkov.net> (raw)
In-Reply-To: <acba2a45-2c52-4537-40ab-35bfd1089eab@yandex.ru> (Dmitry Gutov's message of "Fri, 6 Mar 2020 17:24:58 +0200")

>> rgrep/vc-git-grep provides good UI.
>
> No, it doesn't. It's the bare-bone-est UI possible, and it wastes a lot of
> horizontal space. It doesn't provide a means to search-and-replace. And
> it's not fit for programmatic construction, so Xref can't use it.

If you don't like the grep output format, you can replace 'grep-filter'
with your own process filter that would transform it to any other format.

> So we can't standardize on it, no matter how much you are used to it.

> It is one of "quality of life" things I have spent quite some effort on
> improving, and to be frank I don't appreciate you handwaving all that 
> away by simply saying "non-standard".

We already had 2 different formats: grep and occur, and now came a new
3rd format: xref.  I think any attempt to standardize on the output format
should be welcome.  Of course, a general UI should be customizable enough
to provide look and feel of any of the current formats.

> None of the "standard" UIs you mentioned provide the functionality we
> need. Grep is async, but cumbersome and has no provision of doing 
> anything with the matches: Wgrep is not in Emacs, not even in GNU ELPA, and
> there's no quick "replace matching string with xxx" feature in it
> anyway. Occur only works with buffers, it's not async either, and the 
> overhead of visiting who knows how many buffers is basically unlimited
> (Grep is way faster at finding matches than Emacs at visiting files). 
> It's objectively *worse* for the purpose at hand, which will be especially
> evident in bigger projects.

Why not take the best parts from these contenders?
Take async part of finding matches from grep and
transform its output to any format you like.



  reply	other threads:[~2020-03-08  0:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <505E43E1.9090801@yandex.ru>
2015-01-21 20:55 ` bug#12492: vc-dir vs. vc-root-dir Ivan Shmakov
     [not found] ` <871rzer8t2.fsf@mail.linkov.net>
     [not found]   ` <8d51a8c9-6200-84c9-cadb-09576b060fe1@yandex.ru>
     [not found]     ` <87o92h7fv1.fsf@mail.linkov.net>
     [not found]       ` <c077c5d4-c343-a902-d184-1aa66f40eb07@yandex.ru>
     [not found]         ` <m38stkzoba.fsf@gnus.org>
     [not found]           ` <878stissii.fsf@mail.linkov.net>
     [not found]             ` <m34l44a9vk.fsf@gnus.org>
     [not found]               ` <87muhtzh8z.fsf@mail.linkov.net>
     [not found]                 ` <875zfvzfvp.fsf@mail.linkov.net>
     [not found]                   ` <8772f3cb-5af2-f89a-db47-682d9feef125@yandex.ru>
     [not found]                     ` <87lfoqjr20.fsf@mail.linkov.net>
     [not found]                       ` <ef584215-0515-ac7a-4f3c-d7cd3d17b0d5@yandex.ru>
     [not found]                         ` <87y2slup32.fsf@mail.linkov.net>
     [not found]                           ` <318f40f9-78ae-d739-6ac8-b7bb04598aad@yandex.ru>
     [not found]                             ` <877e022uul.fsf@mail.linkov.net>
     [not found]                               ` <3c0c8d61-1df2-b481-655a-d0b610ee6324@yandex.ru>
     [not found]                                 ` <8736ap10x9.fsf@mail.linkov.net>
     [not found]                                   ` <3631ca1d-9a11-8ff6-08bb-6d18268e47d2@yandex.ru>
     [not found]                                     ` <87r1y7odxt.fsf@mail.linkov.net>
     [not found]                                       ` <a51ea0fb-e8a1-9a71-7ce2-3c49ee25289c@yandex.ru>
     [not found]                                         ` <87ftemuzd6.fsf@mail.linkov.net>
2020-03-06 15:24                                           ` "Non-standard UI", was: Re: bug#12492: Acknowledgement (24.2.50; Open vc-dir buffer easier and faster) Dmitry Gutov
2020-03-08  0:53                                             ` Juri Linkov [this message]
2020-03-08 10:38                                               ` "Non-standard UI" Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kuzk694.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).