help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to search whole buffer?


From: Ulrich Scholz
Subject: How to search whole buffer?
Date: Wed, 22 Apr 2009 02:14:12 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]