From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: next-error-highlight = t - highlighting doesn't stay until youmoveto the next locus Date: Mon, 26 Mar 2007 08:00:46 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174921298 13864 80.91.229.12 (26 Mar 2007 15:01:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 15:01:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 17:01:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVqhC-0003Lo-4N for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 17:01:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqjR-0005yb-Gl for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 10:03:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVqjN-0005tm-El for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:03:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVqjK-0005ku-69 for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:03:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqjK-0005kS-2p for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:03:30 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVqh3-0008V3-ON for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:01:10 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2QF16QR006552; Mon, 26 Mar 2007 10:01:06 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2QEelQs030890; Mon, 26 Mar 2007 09:01:05 -0600 Original-Received: from dhcp-amer-rmdc-csvpn-gw5-141-144-104-99.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2562189521174921248; Mon, 26 Mar 2007 08:00:48 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 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:68612 Archived-At: > I, for one, cannot imagine anyone preferring the behavior where the > highlighting lives on for ever. The doc string description of the value t, and the behavior I prefer, is that the highlighting goes away when it is replaced by the next hit visit (`next-error'). Yes, this does always leave one occurrence highlighted. That doesn't bother me. If it did, I would make it go away by re-fontifying the buffer. I've been using a similar highlighting in my own code for years, and I in fact leave all of the visited occurences highlighted, "forever". That makes it very easy to compare bits of code - a bit like `occur' in context. > To make it bearable, you'd need at the very > least a special way to make it go away when you don't want it any more. Yes, I have a key that removes such highlighting (in the case of my own highlighting, which is of each visited hit). I prefer to remove the highlighting only upon demand. Since Emacs 22 only ever leaves one hit highlighted, I never feel the need to remove that highlighting. Different strokes for different folks.