unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: compilation: highlight current error
Date: Mon, 27 Jun 2016 18:35:26 +0200	[thread overview]
Message-ID: <87furyy4hd.fsf@roche-blanche.net> (raw)
In-Reply-To: 83oa6my6xy.fsf@gnu.org

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




  reply	other threads:[~2016-06-27 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-06-27 16:01 ` Drew Adams
2016-06-27 16:23   ` Peter Münster

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=87furyy4hd.fsf@roche-blanche.net \
    --to=pmlists@free.fr \
    --cc=help-gnu-emacs@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.
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).