From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: Re: compilation: highlight current error Date: Mon, 27 Jun 2016 18:23:19 +0200 Message-ID: <87r3biy51k.fsf@roche-blanche.net> References: <87eg7j2lch.fsf@free.fr> <9b834485-d160-4cf1-a9be-28f9e2747716@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467044659 26055 80.91.229.3 (27 Jun 2016 16:24:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 16:24:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 18:24:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHZKW-0000m0-Do for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 18:24:12 +0200 Original-Received: from localhost ([::1]:59833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZKV-00020W-Mc for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 12:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZJv-0001yq-V5 for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:23:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHZJp-0002NB-V7 for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:23:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZJp-0002Mt-OQ for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:23:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bHZJm-0000Ms-Ij for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 18:23:26 +0200 Original-Received: from arennes-651-1-16-86.w86-215.abo.wanadoo.fr ([86.215.215.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2016 18:23:26 +0200 Original-Received: from pmlists by arennes-651-1-16-86.w86-215.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2016 18:23:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-16-86.w86-215.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:gA2BueTfAPg6mu8iHRkZHeNl7Ow= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110616 Archived-At: 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