unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Making re-search-forward search for \377
@ 2008-11-02  7:31 Tyler Spivey
  2008-11-02  8:45 ` Xah
  0 siblings, 1 reply; 9+ messages in thread
From: Tyler Spivey @ 2008-11-02  7:31 UTC (permalink / raw)
  To: help-gnu-emacs

I'm having a hell of a time trying to get re-search-forward to find a
\377 character in my buffer. Here is what I've tried so far, using
*scratch*:

1. C-q 377 RET M-< RET
(re-search-forward "\377") C-x C-e - not found.
(re-search-forward "[press C-q 377]") C-x C-e - this works.
If I turn multibyte off with M-X toggle-enable-multibyte-characters,
none of these work. My eventual goal is to do this in an elisp program,
but I need to get the basics
reliably working first. I've tried string-{as,to,make}-multibyte on the
"\377", with no luck. I've read the info pages on coding systems and
such, but I'm not sure what I'm missing here.


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

end of thread, other threads:[~2008-11-03 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-02  7:31 Making re-search-forward search for \377 Tyler Spivey
2008-11-02  8:45 ` Xah
2008-11-02  9:12   ` Tyler Spivey
2008-11-02 18:10     ` Kevin Rodgers
2008-11-02 20:32     ` Xah
2008-11-02 22:35       ` Tyler Spivey
2008-11-03  4:21     ` Eli Zaretskii
     [not found]     ` <mailman.2743.1225686066.25473.help-gnu-emacs@gnu.org>
2008-11-03  4:54       ` Tyler Spivey
2008-11-03 19:42         ` Eli Zaretskii

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).