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 untilyoumoveto the next locus Date: Mon, 26 Mar 2007 08:56:55 -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 1174924730 1307 80.91.229.12 (26 Mar 2007 15:58:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 15:58:50 +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:58:40 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 1HVrad-0004Gd-Te for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 17:58:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVrct-00019Z-FL for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 11:00:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVrcp-00017a-L2 for emacs-devel@gnu.org; Mon, 26 Mar 2007 12:00:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVrco-00016S-7P for emacs-devel@gnu.org; Mon, 26 Mar 2007 12:00:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVrcn-00015l-Jm for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:00:49 -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 1HVraX-00026e-3e for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:58:29 -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 l2QFwPFD030087; Mon, 26 Mar 2007 10:58:26 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2QFwOEr009008; Mon, 26 Mar 2007 09:58:24 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-81-70.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 2562438001174924618; Mon, 26 Mar 2007 08:56:58 -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: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:68621 Archived-At: > > 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. > > Since next-error uses an overlay, re-fontifying wouldn't help. As I said, leaving the last occurrence highlighted doesn't bother me. Different people use Emacs differently and have different preferences. As I said in my initial post: > For example, if I use pop-up-frames, and I click in the source buffer > (frame), the highlighting disappears. If the source-buffer frame > is slightly behind the *grep* frame, then I can't see where the hit > is - as soon as I click the frame, the highlighting disappears. Your eyes might be quicker or better than mine, but highlighting that disappears before I can even notice it is useless to me. > > 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). > > But then it looks more and more like a new feature, i.e. not fit > for Emacs-22. I'm not asking that multiple occurrences remain highlighted as in my own code. I'm asking only that the implementation respect the doc string for `t', that users have an option value that will leave the occurrence highlighted until `next-error'.