From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Cc: zappo@gnu.org
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 [thread overview]
Message-ID: <87k5owod86.fsf_-_@baldur.tsdh.de> (raw)
In-Reply-To: <jwvr6j4hgw7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 05 Nov 2007 10:14:21 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2007-11-05 16:42 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 18:50 doc-view cache file permissions Glenn Morris
2007-10-30 20:11 ` Stefan Monnier
2007-10-30 20:57 ` Glenn Morris
2007-10-30 21:56 ` Stefan Monnier
2007-10-31 7:22 ` Tassilo Horn
2007-10-31 7:56 ` Tassilo Horn
2007-10-31 15:10 ` Stefan Monnier
2007-10-31 17:46 ` Tassilo Horn
2007-10-31 18:21 ` Stefan Monnier
2007-10-31 19:44 ` Tassilo Horn
2007-10-31 20:41 ` Stefan Monnier
2007-11-02 20:44 ` Juri Linkov
2007-11-02 23:53 ` Tassilo Horn
2007-11-03 14:07 ` Stefan Monnier
2007-11-03 19:20 ` Tassilo Horn
2007-11-05 12:01 ` isearch for doc-view.el (was: doc-view cache file permissions) Tassilo Horn
2007-11-05 12:43 ` isearch for doc-view.el David Kastrup
2007-11-05 13:19 ` Tassilo Horn
2007-11-05 15:14 ` Stefan Monnier
2007-11-05 16:42 ` Tassilo Horn [this message]
2007-11-05 21:01 ` Tassilo Horn
2007-11-05 21:20 ` Stefan Monnier
2007-11-05 21:51 ` Tassilo Horn
2007-11-06 0:44 ` Juri Linkov
2007-11-06 8:25 ` Tassilo Horn
2007-11-06 22:29 ` Juri Linkov
2007-11-07 8:41 ` Tassilo Horn
2007-11-10 21:57 ` Juri Linkov
2007-11-06 8:34 ` Tassilo Horn
2007-10-30 22:14 ` doc-view cache file permissions Reiner Steib
2007-10-31 0:52 ` Stefan Monnier
2007-10-30 20:34 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k5owod86.fsf_-_@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=emacs-devel@gnu.org \
--cc=zappo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.