[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to search whole buffer?
From: |
Tassilo Horn |
Subject: |
Re: How to search whole buffer? |
Date: |
Wed, 22 Apr 2009 12:51:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Tassilo Horn <tassilo@member.fsf.org> writes:
> Ulrich Scholz <d7@thispla.net> writes:
>
> Hi Ulrich,
>
> what you want is this:
>
> (defun my-replace ()
> "change escape sequences to umlauts"
> (interactive)
> (save-excursion
> (goto-char 1)
> (while (search-forward "ß" nil t)
^
Ups, while testing I replaced the <DF> with ß. ;-)
> (replace-match "ß" nil nil))))
Bye,
Tassilo
--
Chuck Norris' sperm can be seen with the naked eye. Each one is the size of a
quarter.