Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!helios.ee.lbl.gov!pasteur!homer.Berkeley.EDU!mcgrath From: mcgrath@homer.Berkeley.EDU (Roland McGrath) Newsgroups: comp.emacs Subject: Re: searching for "non-printables" Message-ID: Date: 21 Jul 90 00:18:43 GMT References: <929@meaddata.mead.UUCP> Sender: news@pasteur.Berkeley.EDU Organization: Hackers Anonymous International, Ltd., Inc. (Applications welcome) Lines: 13 X-Local-Date: 20 Jul 90 17:18:43 PDT In-reply-to: jennifer@mead.UUCP's message of 20 Jul 90 13:26:32 GMT In article <929@meaddata.mead.UUCP> jennifer@mead.UUCP (Jennifer Lill) writes: > How can I search for a string containing a non-printable that emacs would > display with a \? The values are octal, not hexadecimal. You can enter any character in octal at any time bu doing C-q NNN where NNN is the octal value. If you are doing a normal i-search, for "foo\001bar", do C-s f o o C-q 0 0 1 b a r. You can also enter control characters that would otherwise be commands by preceding them with C-q, so you could do the above as: C-s f o o C-q C-a b a r -- Roland McGrath Free Software Foundation, Inc. roland@ai.mit.edu, uunet!ai.mit.edu!roland