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: isearch for doc-view.el Date: Mon, 05 Nov 2007 10:14:21 -0500 Message-ID: References: <7gk5p448xq.fsf@fencepost.gnu.org> <87wst33g0o.fsf@baldur.tsdh.de> <87pryv3eew.fsf@baldur.tsdh.de> <87k5p3qisa.fsf@baldur.tsdh.de> <87ejfbqdb4.fsf@baldur.tsdh.de> <87y7dhv89p.fsf@jurta.org> <87ejf8kxwg.fsf@baldur.tsdh.de> <87sl3koq9k.fsf_-_@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194275688 15875 80.91.229.12 (5 Nov 2007 15:14:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2007 15:14:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 05 16:14:49 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 1Ip3f6-0004rt-3b for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 16:14:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ip3ev-0005pH-98 for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 10:14:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ip3ej-0005lh-0V for emacs-devel@gnu.org; Mon, 05 Nov 2007 10:14:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ip3eh-0005l5-Kr for emacs-devel@gnu.org; Mon, 05 Nov 2007 10:14:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ip3eh-0005l1-CA for emacs-devel@gnu.org; Mon, 05 Nov 2007 10:14:23 -0500 Original-Received: from tomts40.bellnexxia.net ([209.226.175.97] helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ip3eg-0005m1-TW for emacs-devel@gnu.org; Mon, 05 Nov 2007 10:14:23 -0500 Original-Received: from pastel.home ([70.55.140.67]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071105151421.QIFY1617.tomts40-srv.bellnexxia.net@pastel.home> for ; Mon, 5 Nov 2007 10:14:21 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A3DBB7FC2; Mon, 5 Nov 2007 10:14:21 -0500 (EST) In-Reply-To: <87sl3koq9k.fsf_-_@baldur.tsdh.de> (Tassilo Horn's message of "Mon\, 05 Nov 2007 13\:01\:11 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: 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:82586 Archived-At: > I'm trying to implement that now, but I have some problems with it. I > set isearch-search-fun-function buffer-locally to > doc-view-isearch-function in doc-view-mode. If I describe this variable > in a doc-view buffer, it says it hat the desired value. But when I hit > C-s to start isearch and edebug isearch-search-fun it shows up that > isearch-search-fun-function is nil then. But why is that? Don't know. It seems to work more or less here. (other than an error because the pdf->png sentinel called doc-view-search... with 0 args). Also avoid the set-buffer....set-buffer style: use with-current-buffer instead, it's cleaner and more robust. Stefan