From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: isearch-whole-buffer?
Date: Sun, 26 Mar 2006 03:02:23 +0200 [thread overview]
Message-ID: <yoij64m210io.fsf@linus003.dd.chalmers.se> (raw)
In-Reply-To: -N-dnckRSdxBlrnZnZ2dnUVZ_vudnZ2d@mcgill.ca
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 parent reply other threads:[~2006-03-26 1:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-24 15:10 isearch-whole-buffer? xyblor
2006-03-24 16:09 ` isearch-whole-buffer? Kevin Rodgers
2006-03-24 16:58 ` isearch-whole-buffer? Kevin Rodgers
[not found] ` <mailman.19.1143219602.14013.help-gnu-emacs@gnu.org>
2006-03-25 18:42 ` isearch-whole-buffer? xyblor
2006-03-25 20:56 ` isearch-whole-buffer? B. T. Raven
2006-03-25 22:48 ` isearch-whole-buffer? xyblor
2006-03-25 23:34 ` isearch-whole-buffer? Vin Shelton
2006-03-26 2:07 ` isearch-whole-buffer? Miles Bader
2006-03-26 10:42 ` isearch-whole-buffer? Peter Dyballa
2006-03-26 1:02 ` Johan Bockgård [this message]
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=yoij64m210io.fsf@linus003.dd.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
/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.