unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ulrich Scholz <d7@thispla.net>
To: help-gnu-emacs@gnu.org
Subject: How to search whole buffer?
Date: Wed, 22 Apr 2009 02:14:12 -0700 (PDT)	[thread overview]
Message-ID: <171ef1c1-d950-4035-b224-acec4b90bc99@h28g2000yqd.googlegroups.com> (raw)

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	other threads:[~2009-04-22  9:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22  9:14 Ulrich Scholz [this message]
2009-04-22 10:39 ` How to search whole buffer? 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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171ef1c1-d950-4035-b224-acec4b90bc99@h28g2000yqd.googlegroups.com \
    --to=d7@thispla.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).