|
From: | Johan Bockgård |
Subject: | Re: isearch-whole-buffer? |
Date: | Sun, 26 Mar 2006 03:02:23 +0200 |
User-agent: | Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
In Emacs 22 you could use something like: (setq isearch-search-fun-function 'wrapping-search-fun) (defun wrapping-search-fun () (lambda (&rest args) (let* ((isearch-search-fun-function nil) (fun (isearch-search-fun))) (or (apply fun args) (unless (cadr args) (goto-char (if isearch-forward (point-min) (point-max))) (apply fun args)))))) (It will wrap around silently without indicating "wrapped" or "overwrapped" search.) -- Johan Bockgård
[Prev in Thread] | Current Thread | [Next in Thread] |