* compilation: highlight current error
@ 2016-06-27 6:32 Peter Münster
2016-06-27 15:42 ` Eli Zaretskii
2016-06-27 16:01 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Peter Münster @ 2016-06-27 6:32 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I would like the current error in the compilation buffer to be
highlighted. How could this be done please?
TIA for any hints,
--
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: compilation: highlight current error
2016-06-27 6:32 compilation: highlight current error Peter Münster
@ 2016-06-27 15:42 ` Eli Zaretskii
2016-06-27 16:35 ` Peter Münster
2016-06-27 16:01 ` Drew Adams
1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2016-06-27 15:42 UTC (permalink / raw)
To: help-gnu-emacs
> From: Peter Münster <pmlists@free.fr>
> Date: Mon, 27 Jun 2016 08:32:14 +0200
>
> I would like the current error in the compilation buffer to be
> highlighted. How could this be done please?
Turn on the hl-line-mode in the compilation buffer?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: compilation: highlight current error
2016-06-27 15:42 ` Eli Zaretskii
@ 2016-06-27 16:35 ` Peter Münster
0 siblings, 0 replies; 5+ messages in thread
From: Peter Münster @ 2016-06-27 16:35 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, Jun 27 2016, Eli Zaretskii wrote:
>> I would like the current error in the compilation buffer to be
>> highlighted. How could this be done please?
>
> Turn on the hl-line-mode in the compilation buffer?
Thanks for this hint! There is perhaps a bug: when jumping to the next
error, the highlighted line does not change.
But I've found a work-around:
--8<---------------cut here---------------start------------->8---
(add-hook 'next-error-hook (lambda ()
(with-current-buffer next-error-last-buffer
(hl-line-mode 0)
(hl-line-mode 1))))
--8<---------------cut here---------------end--------------->8---
--
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: compilation: highlight current error
2016-06-27 6:32 compilation: highlight current error Peter Münster
2016-06-27 15:42 ` Eli Zaretskii
@ 2016-06-27 16:01 ` Drew Adams
2016-06-27 16:23 ` Peter Münster
1 sibling, 1 reply; 5+ messages in thread
From: Drew Adams @ 2016-06-27 16:01 UTC (permalink / raw)
To: Peter Münster, help-gnu-emacs
> I would like the current error in the compilation buffer to be
> highlighted. How could this be done please?
What do you mean by the current error? When you visit an error
using, say `C-x `', doesn't that move the current error line to
the top of the window that lists the errors? Isn't that enough?
Or do you want the current error highlighted in the source code
and not in the compilation buffer?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: compilation: highlight current error
2016-06-27 16:01 ` Drew Adams
@ 2016-06-27 16:23 ` Peter Münster
0 siblings, 0 replies; 5+ messages in thread
From: Peter Münster @ 2016-06-27 16:23 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, Jun 27 2016, Drew Adams wrote:
>> I would like the current error in the compilation buffer to be
>> highlighted. How could this be done please?
>
> What do you mean by the current error? When you visit an error
> using, say `C-x `', doesn't that move the current error line to
> the top of the window that lists the errors?
No. The current error line is most times somewhere between the middle
and the bottom of the window.
(I don't know, if that matters:
I have compilation-scroll-output = 'first-error)
> Isn't that enough?
No. When there are several errors, my old eyes don't find immediately the
current one.
> Or do you want the current error highlighted in the source code
> and not in the compilation buffer?
It's already done in the source code (see `next-error-highlight').
I would like the error message in the compilation buffer to be
highlighted.
--
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-27 16:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 6:32 compilation: highlight current error Peter Münster
2016-06-27 15:42 ` Eli Zaretskii
2016-06-27 16:35 ` Peter Münster
2016-06-27 16:01 ` Drew Adams
2016-06-27 16:23 ` Peter Münster
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).