From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: CEDET/senator kill the buffer-local value of isearch-search-fun-function (was: isearch for doc-view.el) Date: Mon, 05 Nov 2007 17:42:49 +0100 Message-ID: <87k5owod86.fsf_-_@baldur.tsdh.de> 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 1194281053 3843 80.91.229.12 (5 Nov 2007 16:44:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2007 16:44:13 +0000 (UTC) Cc: zappo@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 05 17:44:16 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 1Ip53g-0000eL-9B for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 17:44:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ip53V-00006r-Kf for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 11:44:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ip52R-0007pj-Ek for emacs-devel@gnu.org; Mon, 05 Nov 2007 11:42:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ip52Q-0007os-9w for emacs-devel@gnu.org; Mon, 05 Nov 2007 11:42:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ip52Q-0007oi-51 for emacs-devel@gnu.org; Mon, 05 Nov 2007 11:42:58 -0500 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ip52K-00059D-Je; Mon, 05 Nov 2007 11:42:52 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 4C01845BAC; Mon, 5 Nov 2007 11:42:52 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 05 Nov 2007 11:42:52 -0500 X-Sasl-enc: e8nYy8LC/DALKTvu6xEFW/NJXpGqskCd8wNIWW+Rrb/I 1194280971 Original-Received: from baldur.tsdh.de (dslb-084-063-062-224.pools.arcor-ip.net [84.63.62.224]) by mail.messagingengine.com (Postfix) with ESMTP id C30B7B7CD; Mon, 5 Nov 2007 11:42:50 -0500 (EST) Mail-Followup-To: emacs-devel@gnu.org, zappo@gnu.org In-Reply-To: (Stefan Monnier's message of "Mon, 05 Nov 2007 10:14:21 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:82592 Archived-At: Stefan Monnier writes: >> 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. Here it does not. I have the same problem with e.g. longlines-mode, which sets isearch-search-fun-function buffer-locally, too. Here's what I do. ,---- | 1. C-x C-f somefile | 2. M-x longlines-mode | 3. C-h v isearch-search-fun-function => longlines-search-function | 4. C-s foo C-g | 5. C-h v isearch-search-fun-function => nil `---- If I edebug-defun isearch-search-string before I start step 4 I can see that the value of isearch-search-fun-function already is nil in that function. However, I can only reproduce this with `emacs -q', not with `emacs -Q', so it seems some addon package I have installed causes this problem. Ok, now I found the culprit by grepping all sources of the addon packages I use. It is CEDET (1.0_pre4). In senator.el there's some setting and killing of the buffer-local value of isearch-search-fun-function. I deinstalled cedet, and now it works. Eric, can you have a look at this? > (other than an error because the pdf->png sentinel called > doc-view-search... with 0 args). Thanks, I deleted this. > Also avoid the set-buffer....set-buffer style: use with-current-buffer > instead, it's cleaner and more robust. Of course, you're right. Bye, Tassilo