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: Calling occur from within isearch Date: Thu, 22 Nov 2007 11:38:15 -0800 Message-ID: References: <87abp6p0sm.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195760376 19194 80.91.229.12 (22 Nov 2007 19:39:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2007 19:39:36 +0000 (UTC) Cc: Alex Schroeder , Emacs Devel To: "Juri Linkov" , "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 22 20:39:42 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 1IvHth-0002RV-Jo for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 20:39:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvHtT-000387-7k for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 14:39:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IvHtP-00037U-DS for emacs-devel@gnu.org; Thu, 22 Nov 2007 14:39:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IvHtN-00037A-Mz for emacs-devel@gnu.org; Thu, 22 Nov 2007 14:39:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvHtN-000377-Ho for emacs-devel@gnu.org; Thu, 22 Nov 2007 14:39:17 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IvHtM-0004OU-RO for emacs-devel@gnu.org; Thu, 22 Nov 2007 14:39:17 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lAMJdCTd012588; Thu, 22 Nov 2007 12:39:12 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lAMGdcjx018433; Thu, 22 Nov 2007 12:39:11 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-100.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3383077151195760265; Thu, 22 Nov 2007 11:37:45 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87abp6p0sm.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: 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:83891 Archived-At: > >>> Sometimes I think it would be good to call occur from within isearch. > >>> Anyone else that thinks it would be good to be able to do so? > >> > >> This is possible with the following patch. I'm still not sure > >> whether it is better to quit isearch before calling occur or not. > >> Anyway, it works without quitting isearch, and displays the results > >> of occur in another window. > > > > That is nice. I see no reason to end isearch, that is easy to > do afterwards. > > Wouldn't it be more nice if the current search line was also highlighted > in the *Occur* buffer in sync with the position in the original buffer? Yes. It's enough to highlight the line number (of the current search line). And any such highlighting should be temporary in some way. FWIW, I use code that highlights the line number after you visit the line - a la visited links in Info or on Web pages. I find it helps me keep track of what I've already looked at. Code: http://www.emacswiki.org/cgi-bin/wiki/replace%2b.el. Doc: http://www.emacswiki.org/cgi-bin/emacs-en/ReplacePlus.