[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: search-forward in emacs23 lisp
From: |
Eli Zaretskii |
Subject: |
Re: search-forward in emacs23 lisp |
Date: |
Mon, 29 Mar 2010 18:17:53 +0300 |
> Date: Mon, 29 Mar 2010 10:01:17 -0500 (CDT)
> Cc: help-gnu-emacs@gnu.org
> From: rasmith@tamu.edu
>
> In other words, search-forward cannot find byte \377 when searching in
> a *unibyte* buffer, but it can find that same byte if the buffer is
> changed to multibyte. The reason is that in a unibyte buffer,
> search-forward apparently changes byte \377 to a two-byte
> representation (but not to utf-8, which would be \303\277).
>
> The code I had a problem with can be fixed by using char-after
> (or more elegantly, I've now learned, using skip-chars-forward),
> However, there's probably other code out there that's now broken
> because of this. Is it a bug, or was it a mistake to expect
> search-forward to find a single high byte in a multibyte buffer in the
> first place?
Please ask these questions on emacs-devel@gnu.org. All the experts
who know the answers are there.
- Re: search-forward in emacs23 lisp, (continued)
- Re: search-forward in emacs23 lisp, rasmith, 2010/03/28
- Re: search-forward in emacs23 lisp, Lennart Borgman, 2010/03/28
- Re: search-forward in emacs23 lisp, rasmith, 2010/03/28
- Re: search-forward in emacs23 lisp, rasmith, 2010/03/28
- Re: search-forward in emacs23 lisp, Lennart Borgman, 2010/03/28
Re: search-forward in emacs23 lisp, Peter Dyballa, 2010/03/28
Re: search-forward in emacs23 lisp, Johan Bockgård, 2010/03/28