From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Allow compilation-next-error-function to leave code line highlighted until next command is typed Date: Wed, 23 Jun 2004 02:19:16 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <873c4nyydn.fsf@mail.jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087948235 32338 80.91.224.253 (22 Jun 2004 23:50:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2004 23:50:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 23 01:50:27 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bcv23-0007tH-00 for ; Wed, 23 Jun 2004 01:50:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bcv23-0007Ol-00 for ; Wed, 23 Jun 2004 01:50:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bcv3N-0000ds-Hy for emacs-devel@quimby.gnus.org; Tue, 22 Jun 2004 19:51:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bcv3K-0000dm-BJ for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:51:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bcv3I-0000da-Ph for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:51:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bcv3I-0000dX-Ln for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:51:44 -0400 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bcv1p-0002ml-LU for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:50:13 -0400 Original-Received: from mail.jurta.org (80-235-33-29-dsl.mus.estpak.ee [80.235.33.29]) by spork.dreamhost.com (Postfix) with ESMTP id 7325611DC1F; Tue, 22 Jun 2004 16:50:11 -0700 (PDT) Original-To: Francis Litterio In-Reply-To: (Francis Litterio's message of "Tue, 22 Jun 2004 15:26:28 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25200 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25200 Francis Litterio writes: > This patch to lisp/progmodes/compile.el in the CVS Emacs sources allows > compilation-next-error-function to either highlight the displayed line > of code for a configurable amount of time (it used to be hard-coded at > 0.5 seconds) or to leave it highlighted until the next command is > entered. > > I hope this change is of value. A similar change was discussed recently but was stuck with naming of this option: it should be used by packages other than compile (grep, diff, occur, ...), but neither `compilation-highlight' nor `next-error-highlight' seems right when applied to non-compilation buffers. Perhaps `locus-highlight' or `match-highlight' are better names. -- Juri Linkov http://www.jurta.org/emacs/