|
From: | Juri Linkov |
Subject: | Re: isearch hooks |
Date: | Tue, 29 Jun 2004 04:17:38 +0300 |
User-agent: | Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Stefan <address@hidden> writes: >> + (if isearch-wrapped-hook >> + (run-hooks 'isearch-wrapped-hook) >> + (goto-char (if isearch-forward (point-min) (point-max)))) > > If the hook was made buffer local it might be non-nil and yet empty. > So the test for nil-ness of isearch-wrapped-hook is wrong. In the latest version posted 2004-06-25 I changed this into funcall: - (goto-char (if isearch-forward (point-min) (point-max))) + (if isearch-wrap-function + (funcall isearch-wrap-function) + (goto-char (if isearch-forward (point-min) (point-max)))) So in this case there is no problem with buffer local hooks. -- Juri Linkov http://www.jurta.org/emacs/
[Prev in Thread] | Current Thread | [Next in Thread] |