Path: utzoo!utgpu!watmath!uunet!tektronix!reed!ogccse!littlei!omepd!mipos3!nate From: nate@hobbes.intel.com (Nate Hess) Newsgroups: gnu.emacs.bug Subject: Re: 18.52 search-forward can't find NULL ("\000") Message-ID: <3464@mipos3.intel.com> Date: 20 Jan 89 15:29:48 GMT References: <8901191850.AA01262@mrspoc.UUCP> Sender: news@mipos3.intel.com Reply-To: woodstock@hobbes.intel.com (Nate Hess) Distribution: gnu Organization: Intel Corporation, Santa Clara, CA Lines: 19 In-reply-to: mrspoc!kayvan@APPLE.COM (Kayvan Sylvan) Posting-Front-End: Gnews 2.0 In article <8901191850.AA01262@mrspoc.UUCP>, mrspoc!kayvan@APPLE (Kayvan Sylvan) writes: >I have a file containing: > >abcde^@fghijk^@kjhkjhkj > >with point at "a", I do eval-expression (search-forward "\0"). >The message 'Search failed: "' appears in the message area. It's doing exactly what you told it to. The string "\0" is the same as the string "0". In order to get the NULL character, you have to specify the octal value '000' after the backslash: "\000". Happy Searching, --woodstock -- "What I like is when you're looking and thinking and looking and thinking...and suddenly you wake up." - Hobbes woodstock@hobbes.intel.com ...!{decwrl|hplabs!oliveb|amd}!intelca!mipos3!nate