From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#11381: 23.3; isearch-search-and-update issue? Date: Tue, 01 May 2012 18:17:02 +0300 Organization: JURTA Message-ID: <878vhcc4nl.fsf@mail.jurta.org> References: <4F9DC154.2000605@groveronline.com> <87ipgggtmw.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335885764 7594 80.91.229.3 (1 May 2012 15:22:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 May 2012 15:22:44 +0000 (UTC) Cc: 11381@debbugs.gnu.org, Andy Grover To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 01 17:22:43 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPEuY-000436-O1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 May 2012 17:22:42 +0200 Original-Received: from localhost ([::1]:47280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPEuY-0007AA-3a for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 May 2012 11:22:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPEuU-00075e-Mr for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 11:22:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPEuR-0005tr-NS for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 11:22:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPEuR-0005ti-Je for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 11:22:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SPEvq-0000ap-Li for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 May 2012 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11381-submit@debbugs.gnu.org id=B11381.13358858092230 (code B ref 11381); Tue, 01 May 2012 15:24:02 +0000 Original-Received: (at 11381) by debbugs.gnu.org; 1 May 2012 15:23:29 +0000 Original-Received: from localhost ([127.0.0.1]:60930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPEvH-0000Zq-Rn for submit@debbugs.gnu.org; Tue, 01 May 2012 11:23:28 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:46233 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPEvE-0000Zb-4I for 11381@debbugs.gnu.org; Tue, 01 May 2012 11:23:26 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 5DA3A451C99F; Tue, 1 May 2012 08:21:55 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 01 May 2012 09:08:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59681 Archived-At: > Sounds like a good idea. To solve nb 3 (i.e. searching for a symbol), > all that's needed is to set isearch-search-fun-function, so the > mechanism is there. `isearch-word' binds the search function to `word-search-forward' and `word-search-backward', so perhaps new functions `symbol-search-forward' and `symbol-search-backward' will be necessary too. > The problem is that it's clunky to use because you can't just let-bind > that variable around the call to isearch-forward. So one thing we > (c|sh)ould provide is a general way to "run isearch with the following > vars temporarily bound to these values". > Maybe simply a new function that runs isearch in a recursive-edit would > be all that's needed (so you can let-bind the vars around the call to > that function). Another variant to try is to set these variables in a function added to `isearch-mode-hook'.