all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to search whole buffer?
@ 2009-04-22  9:14 Ulrich Scholz
  2009-04-22 10:39 ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Scholz @ 2009-04-22  9:14 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, I'm using search-forward to search and replace strings.

(defun my-replace nil "change escape sequences to umlauts"
  (interactive)
   (while (search-forward "<DF>" nil t)
           (replace-match "ß" nil nil))
)

But that search does not search the whole buffer.  In particular, if I
perform two subsequent searches then the second does not find
anything.  So either I'm looking for something like
search-buffer (which I did not find yet) or for a method to set the
begin of the search to the first character of the current buffer.
(I've had a look at search but there was no documentation)

Thanks,

Ulrich


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-22 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22  9:14 How to search whole buffer? Ulrich Scholz
2009-04-22 10:39 ` Tassilo Horn
2009-04-22 10:51   ` Tassilo Horn
     [not found]   ` <mailman.5793.1240397484.31690.help-gnu-emacs@gnu.org>
2009-04-22 12:15     ` d7

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.