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: Leaving isearch-mode and keeping the highlite Date: Wed, 10 Aug 2005 19:20:22 -0700 Message-ID: References: <42FA9102.5010106@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123727324 29922 80.91.229.2 (11 Aug 2005 02:28:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2005 02:28:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 11 04:28:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E32np-0001b7-0M for ged-emacs-devel@m.gmane.org; Thu, 11 Aug 2005 04:28:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E32nw-0006WL-1V for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2005 22:28:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E32nY-0006SA-Ci for emacs-devel@gnu.org; Wed, 10 Aug 2005 22:28:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E32nO-0006MP-AD for emacs-devel@gnu.org; Wed, 10 Aug 2005 22:27:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E32nN-0006LW-Qh for emacs-devel@gnu.org; Wed, 10 Aug 2005 22:27:49 -0400 Original-Received: from [141.146.126.230] (helo=agminet03.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E32uU-0001LR-Dn for emacs-devel@gnu.org; Wed, 10 Aug 2005 22:35:10 -0400 Original-Received: from agminet03.oracle.com (localhost [127.0.0.1]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j7B2KN5G011404 for ; Wed, 10 Aug 2005 21:20:23 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j7B2KNxH011389 for ; Wed, 10 Aug 2005 21:20:23 -0500 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j7B2KMsw008392 for ; Wed, 10 Aug 2005 20:20:22 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-65-138.vpn.oracle.com [141.144.65.138]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j7B2KLYe008385 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 10 Aug 2005 20:20:22 -0600 Original-To: "Emacs Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <42FA9102.5010106@student.lu.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:41900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41900 >Turning it on by a particular exit key sequence is not the >best way. I would >rather have that be a user option (like case-fold-search), and >be able to >toggle the option while in isearch (like we can toggle >case-fold-search). Too cumbersome to me. Sometimes I want to leave the highlite there, sometimes not. I was speaking here about turning highlighting on, not removing existing highlighting. You seem to be talking about the latter here. >>From Juri's message, there is an option already, and a command to remove the highlighting. Letting the next search remove the previous highlighting seems better, to me than using a separate command. Wrt toggling the highlight persistence, it would be handy to have an isearch-mode-map binding that toggles option `lazy-highlight-cleanup'. Having different search-exit key sequences to either leave the highlighting or remove it, as you suggest, sounds a bit more cumbersome to me. It would be easier to just toggle the persistence on or off while searching. You aren't going to want to think about the persistence each time you exit isearch - just turn it on when you want and off when you want. I see this much like case-fold-search, except that the effect of the toggle only takes place after you exit isearch.