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: compilation-highlight-duration Date: Thu, 06 May 2004 12:23:43 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87llk552oz.fsf@mail.jurta.org> References: <20040503.071327.124836670.Takaaki.Ota@am.sony.com> <20040504.075437.207586641.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083835961 1772 80.91.224.253 (6 May 2004 09:32:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 May 2004 09:32:41 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Tak Ota Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 06 11:32:32 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 1BLfF2-0001kG-00 for ; Thu, 06 May 2004 11:32:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLfF2-0002c4-00 for ; Thu, 06 May 2004 11:32:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLfEI-0003il-8O for emacs-devel@quimby.gnus.org; Thu, 06 May 2004 05:31:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLfEA-0003ha-7Z for emacs-devel@gnu.org; Thu, 06 May 2004 05:31:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLfDc-0003Yn-Al for emacs-devel@gnu.org; Thu, 06 May 2004 05:31:36 -0400 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLf8Q-0002UX-8a; Thu, 06 May 2004 05:25:42 -0400 Original-Received: from mail.jurta.org (80-235-39-194-dsl.mus.estpak.ee [80.235.39.194]) by spork.dreamhost.com (Postfix) with ESMTP id 2E33B11DC24; Thu, 6 May 2004 02:25:39 -0700 (PDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "06 May 2004 07:58:40 +0200") 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:22839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22839 storm@cua.dk (Kim F. Storm) writes: > Richard Stallman writes: > >> Your question is understandable in case of `next-error' where cursor >> lands directly on the subject line. The suggested user control is >> useful in case of `next-error-no-select' which is used in Grep mode. >> >> Could you explain why and how you use next-error-no-select in Grep >> mode? I would have thought that is something useful only for programs >> to call. I don't see a use for next-error-no-select has, except as a >> subroutine to build other things on. > > next-error-no-select is a command, not a subroutine. > > It is useful in grep-mode as a way to browse the grep matches (using n > and p keys) without leaving the *grep* buffer until you actually find > some interesting match. I think that highlighting is useful *only* in grep-mode, when the cursor is not displayed in non-selected source window (i.e. cursor-in-non-selected-windows is nil). And highlighting is pretty useless in `next-error' which selects a source window, because in this case the location is indicated by the cursor. But currently it's not possible to highlight the source buffer only in `next-error-no-select'. Perhaps a new argument should be added to `next-error' and `compilation-next-error-function' indicating whether highlighting is desirable and in what fashion (overlay flashing delay duration, fringe arrow, etc.) -- Juri Linkov http://www.jurta.org/emacs/