From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: 9432@debbugs.gnu.org
Subject: bug#9432: 24.0.50; doc string of `next-error-highlight'
Date: Tue, 6 Sep 2011 06:47:21 -0700 [thread overview]
Message-ID: <A7E453627B8C47BEA1172BE50C343212@us.oracle.com> (raw)
In-Reply-To: <87pqjehurv.fsf@mail.jurta.org>
> > (And FWIW I still think we should also have a value
> > `until-move' that does the same thing - stay until some
> > other locus replaces it - but using highlighting
> > instead of fringe. I've been using that for years myself,
> > so I obviously prefer it - I generally don't show the fringe.)
>
> But the value `t' already does that - it highlights the locus
> until some other locus replaces it.
1. No, it does not. It highlights only until the next command (which is silly,
IMHO). Move the cursor and poof! it's gone. Only the fringe has a reasonable
behavior (IMO).
2. FWIW2, the behavior I *actually* prefer is what I implemented for Emacs
20-21, before there was any such highlighting in Emacs: just show the
highlighting forever (or until I remove it - on-demand). That makes it easy to
notice and compare multiple locations in the source buffer. It makes it clear
where you've been, which hits you have already visited.
I did not bother with that after Emacs finally added highlighting, since the
highlighting used a different means etc. Value `until-move' is good enough
(second best). And I still use Emacs 20 much of the time (since I maintain code
that supports it), and there I enjoy the behavior I prefer.
But IMHO it should also be possible for vanilla Emacs users to keep the
highlighting until some user action (a particular key/command, not just the
*next* command). One choice for such a key might be `C-0 C-x `' (next-error
with 0 prefix arg).
3. FWIW3: in Emacs -Q, even if I already have the target source file in a
separate frame (e.g. from `C-x 5 b' after having shown it once in the same
frame), and even if that is the *only* place it is currently displayed, `C-x `'
or hit `RET' or click a hit in *grep* still pops up the source file in the same
frame as *grep* and highlights the hit there (does not even highlight it in both
places).
The already displayed source buffer should obviously be used, instead of
multiplying things unnecessarily. Or the behavior should be optional, under
user control, and the default should be to show hits in a window already
displaying the source buffer.
next prev parent reply other threads:[~2011-09-06 13:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-04 1:16 bug#9432: 24.0.50; doc string of `next-error-highlight' Drew Adams
2011-09-05 8:45 ` Juri Linkov
2011-09-05 13:55 ` Drew Adams
2011-09-06 9:42 ` Juri Linkov
2011-09-06 13:47 ` Drew Adams [this message]
2011-09-07 11:48 ` Juri Linkov
2011-09-07 14:05 ` Drew Adams
2011-09-07 23:52 ` Juri Linkov
2011-09-08 1:42 ` Stefan Monnier
2011-09-08 13:17 ` Drew Adams
2011-09-08 20:09 ` Juri Linkov
2011-09-09 2:17 ` Stefan Monnier
2016-04-28 11:20 ` Lars Ingebrigtsen
2011-09-08 13:15 ` Drew Adams
2011-09-07 13:34 ` Stefan Monnier
2019-06-13 11:26 ` Stefan Kangas
2019-06-13 12:44 ` Eli Zaretskii
2019-06-13 13:07 ` Stefan Kangas
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=A7E453627B8C47BEA1172BE50C343212@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=9432@debbugs.gnu.org \
--cc=juri@jurta.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 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.