unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Juri Linkov <juri@linkov.net>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: "Non-standard UI", was: Re: bug#12492: Acknowledgement (24.2.50; Open vc-dir buffer easier and faster)
Date: Fri, 6 Mar 2020 17:24:58 +0200	[thread overview]
Message-ID: <acba2a45-2c52-4537-40ab-35bfd1089eab@yandex.ru> (raw)
In-Reply-To: <87ftemuzd6.fsf@mail.linkov.net>

On 06.03.2020 1:59, Juri Linkov wrote:
> 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.

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

>>>> Not to mention the unfortunate side-effect of having to visit 4000 buffers.
>>> It visits only matched buffers.
>> No. It looks through all project files and calls 'find-file' on each of
>> them. Which is obviously inevitable since multi-occur only accepts a
>> list of buffers, not files.
> No, it doesn't call 'find-file' on each file, noccur-project
> calls 'find-file' only on files with matches found by grep.

I asked where that command is defined, linked a webpage, you said yes.

But apparently you instead meant the newer version that's only on Github.

Okay then. Only visiting files that have matches is better. But not good 
enough when a string I entered ends up in having an arbitrary number of 
buffers visited, even if that's less than 4000.

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".

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.



  parent reply	other threads:[~2020-03-06 15:24 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                                           ` Dmitry Gutov [this message]
2020-03-08  0:53                                             ` "Non-standard UI", Juri Linkov
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=acba2a45-2c52-4537-40ab-35bfd1089eab@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /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).