From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11381: 23.3; isearch-search-and-update issue? Date: Tue, 01 May 2012 09:08:20 -0400 Message-ID: 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 1335877724 9430 80.91.229.3 (1 May 2012 13:08:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 May 2012 13:08:44 +0000 (UTC) Cc: 11381@debbugs.gnu.org, Andy Grover To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 01 15:08:42 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 1SPCor-0000cg-RU for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 May 2012 15:08:41 +0200 Original-Received: from localhost ([::1]:47379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPCor-0005Gd-4X for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 May 2012 09:08:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPCon-0005GH-Dd for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 09:08:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPCol-0006yV-Mr for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 09:08:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPCol-0006yN-JG for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 09:08:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SPCq9-0004J5-JO for bug-gnu-emacs@gnu.org; Tue, 01 May 2012 09:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 May 2012 13:10:01 +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.133587779616539 (code B ref 11381); Tue, 01 May 2012 13:10:01 +0000 Original-Received: (at 11381) by debbugs.gnu.org; 1 May 2012 13:09:56 +0000 Original-Received: from localhost ([127.0.0.1]:60510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPCq3-0004Ii-WD for submit@debbugs.gnu.org; Tue, 01 May 2012 09:09:56 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:44654) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SPCq1-0004IW-OF for 11381@debbugs.gnu.org; Tue, 01 May 2012 09:09:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYIACxOgk9soX5J/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQsLNBIUGA0kiBwFtjKLYYR5BKRFgV2DA4E4Fw X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="177955709" Original-Received: from 108-161-126-73.dsl.teksavvy.com (HELO pastel.home) ([108.161.126.73]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 May 2012 09:08:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 02B11590E8; Tue, 1 May 2012 09:08:20 -0400 (EDT) In-Reply-To: <87ipgggtmw.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 01 May 2012 12:03:41 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) 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:59675 Archived-At: > Looking at how this page presents 12 ways to invent the wheel, > the question arises: why not help people with some basic functionality > in isearch.el that could be used to build commands that will > work reliably and without such problems as reported by this bug report. 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. 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). Stefan