From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Overlay arrow in *compilation* and *grep* buffers Date: Mon, 09 May 2005 23:55:34 +0300 Organization: JURTA Message-ID: <87oebkw22l.fsf@jurta.org> References: <01c548ba$Blat.v2.4$e4827900@zahav.net.il> <01c54909$Blat.v2.4$070f3e60@zahav.net.il> <01c54c2b$Blat.v2.4$e15e8560@zahav.net.il> <17009.19855.763603.487800@farnswood.snap.net.nz> <01c54c8a$Blat.v2.4$6afa17e0@zahav.net.il> <17009.62951.957607.360268@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115680445 32692 80.91.229.2 (9 May 2005 23:14:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 23:14:05 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 10 01:14:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVHRm-0004yf-OH for ged-emacs-devel@m.gmane.org; Tue, 10 May 2005 01:13:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVHaB-0004J6-ST for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 19:22:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVHU7-0002vn-NN for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVHTz-0002tP-EC for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVHTw-0002jx-VH for emacs-devel@gnu.org; Mon, 09 May 2005 19:16:13 -0400 Original-Received: from [194.126.101.100] (helo=MXR-8.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVHTT-0004bn-Hi; Mon, 09 May 2005 19:15:44 -0400 Original-Received: from mail.neti.ee (80-235-35-254-dsl.mus.estpak.ee [80.235.35.254]) by MXR-8.estpak.ee (Postfix) with ESMTP id 7659A5997C; Tue, 10 May 2005 02:09:17 +0300 (EEST) Original-To: Nick Roberts In-Reply-To: <17009.62951.957607.360268@farnswood.snap.net.nz> (Nick Roberts's message of "Fri, 29 Apr 2005 20:52:55 +1200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36921 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36921 > Currently simple.el has: > > (put 'next-error-overlay-arrow-position 'overlay-arrow-string "=>") > > but this could be removed as it is the default now anyway (I think Juri > disappeared again before 2005-04-08). Sorry. I traveled to my friend. She lives 1000km from me. > I suggest this latter change until Juri (or maybe Stefan) comes up with a > better solution that will work with "=>". I suggest adding a new option defining how to highlight lines in compilation/grep buffers, similar to `next-error-highlight' which defines highlighting in source buffers. It will replace `compilation-context-lines': (defcustom compilation-message-highlight 0 "*Highlighting of locations in the compilation buffer. If number, display this many lines of leading context before message. If t, use persistent overlays fontified in next-error face. If nil, don't highlight the locus in the compilation buffer. If `fringe-arrow', indicate the locus by the fringe arrow." :type '(choice (number :tag "Context lines") (const :tag "Persistent overlay" t) (const :tag "No highlighting" nil) (const :tag "Fringe arrow" 'fringe-arrow)) :group 'compilation :version "22.1") Since the number of context lines and fringe arrow are mutually exclusive values, there will be no problem with an arrow overlapping a file name in the compilation buffer, because by default there will be no arrow at all. Users wishing to use arrows can set `compilation-message-highlight' to `fringe-arrow' in .emacs conditionally depending on the presence of fringes. BTW, I don't understand the reason of adding `(defvar next-error-highlight-timer)' to compile.el on 2005-04-23. There is already the same defvar in simple.el. -- Juri Linkov http://www.jurta.org/emacs/