From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: next-error-highlight = t - highlighting doesn't stay until youmoveto the next locus Date: Mon, 26 Mar 2007 11:34:22 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174923288 25324 80.91.229.12 (26 Mar 2007 15:34:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 15:34:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 17:34:32 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 1HVrDM-0001Ev-5K for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 17:34:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVrFa-0000Kq-Ii for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 10:36:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVrFV-0000Dh-42 for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:36:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVrFU-0000Be-9F for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:36:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVrFU-0000B0-0n for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:36:44 -0500 Original-Received: from tomts13-srv.bellnexxia.net ([209.226.175.34]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVrDD-0005zr-HA for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:34:23 -0400 Original-Received: from pastel.home ([70.55.83.113]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070326153422.BYIT1593.tomts13-srv.bellnexxia.net@pastel.home> for ; Mon, 26 Mar 2007 11:34:22 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 989047F6C; Mon, 26 Mar 2007 11:34:22 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Mon\, 26 Mar 2007 08\:00\:46 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:68619 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. > 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. Stefan