all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Dmitry Gutov <dgutov@yandex.ru>, Robert Pluim <rpluim@gmail.com>,
	Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: RE: master fe939b3 1/2: Fix reference to `tags-loop-continue' in doc string
Date: Mon, 5 Aug 2019 08:05:49 -0700 (PDT)	[thread overview]
Message-ID: <068382bf-e781-4bd7-9a1d-df4857a6db0e@default> (raw)
In-Reply-To: <baa602d7-ec3e-5f14-9d3d-b564823724dc@yandex.ru>

> > It begs the question why xrefs replaced a 'do the next thing' type
> > binding with a 'go back' type binding in the first place.
> 
> Because it's more useful. The xref UI presents you with all matches
> right away, and you choose before visiting, so you don't really need
> the "go next" binding 98% of the time.

I would say "also useful" and "differently useful",
or "sometimes more useful" - not "more useful".

Is `occur' (show all matches, let you get directly
to any, in any order) more useful than incremental
search?

Or do you use them both, for different things, in
different contexts?  I use them both.

FWIW, I was the first to provide a way to get
occur-like behavior during completion (in Icicles),
to let you search or search-&-replace without
needing to visit each matching occurrence, in turn.

So I fully recognize the advantages of direct
access to search/find hits over the more exhaustive
approach of visit-each-in-order.

But I also recognize that a single tool - even a
good, flexible one - is not necessarily the best
tool for all jobs.

It was fine to add `xref' to the tool kit.  Great.
It was not so fine (IMHO) to have it take over the
longstanding keys used for the existing `do the
next thing' commands (e.g., `dired-do-search',
`dired-do-query-replace').

Addition, not replacement, would have been TRT.
And yes, I think it was done precipitously, in
addition to not being necessary.

 "xrefs replaced a 'do the next thing' type
  binding with a 'go back' type binding"

> > xref-pop-marker-stack should use a different
> > binding, and M-, should be fileloop-continue,
> > but the xref one has existed for 5 years now.
> 
> Exactly. That ship has sailed.

The bindings were repurposed, and perhaps it's
too late to back out that mistake.

But why is it too late to rehabilitate the
`do the next thing' commands and their doc,
and give them key bindings once again?  Why
promote only `xref', essentially deprecating
the others?

Why not promote (document, bind, etc.) both
approaches?  We don't denigrate Isearch just
because we have `occur'.  Why was it good to
_replace_ the `do the next' commands with
`xref'?

> If you are still not convinced, please go
> ahead and look up the older discussions for
> our reasoning.

I read it all at the time, argued against
repurposing those longstanding keys at the
time, and I'm still not convinced that Emacs
did the right thing in this regard.

I'm convinced of the utility of `xref' (and
I always was).  I'm not convinced that the
existing commands/keys had to be sacrificed
in order to promote what you see as "more
useful" (even perhaps as best for all uses).



  reply	other threads:[~2019-08-05 15:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190801195403.16246.49802@vcs0.savannah.gnu.org>
     [not found] ` <20190801195406.087AF20CC8@vcs0.savannah.gnu.org>
2019-08-02  8:59   ` master fe939b3 1/2: Fix reference to `tags-loop-continue' in doc string Robert Pluim
2019-08-02 10:49     ` Lars Ingebrigtsen
2019-08-02 12:23       ` Robert Pluim
2019-08-02 18:27         ` Lars Ingebrigtsen
2019-08-04 12:03           ` Robert Pluim
2019-08-04 12:09             ` Lars Ingebrigtsen
2019-08-04 12:24               ` Robert Pluim
2019-08-05  9:12                 ` Lars Ingebrigtsen
2019-08-05 10:39                 ` Dmitry Gutov
2019-08-05 10:46                   ` Lars Ingebrigtsen
2019-08-05 10:54                     ` Lars Ingebrigtsen
2019-08-05 13:12                       ` Robert Pluim
2019-08-05 10:42             ` Dmitry Gutov
2019-08-05 15:05               ` Drew Adams [this message]
2019-08-05 18:50                 ` Dmitry Gutov
2019-08-05 19:58                 ` Juri Linkov
2019-08-07 18:33                   ` Lars Ingebrigtsen
2019-08-07 22:11                     ` Dmitry Gutov
2019-08-08 20:45                       ` Juri Linkov
2019-08-06  3:23                 ` Richard Stallman
2019-08-05 10:36           ` 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

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

  git send-email \
    --in-reply-to=068382bf-e781-4bd7-9a1d-df4857a6db0e@default \
    --to=drew.adams@oracle.com \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=rpluim@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.