Article View: gnu.emacs.help
Article #189835Aborting a search nicely
From: Jonathan Sweedler
Date: Mon, 05 Nov 1990 23:52
Date: Mon, 05 Nov 1990 23:52
24 lines
1681 bytes
1681 bytes
I asked this question a while ago, but I didn't get any response. I'm
going to give it one more try and if I still don't hear anything, then I'll
assume it isn't possible.
I have the following psuedo-code:
(re-search-forward "String")
(some-commands-follow)
If "String" does not exist in my buffer then the search-forward command
bombs out. There must be a way to stop the search-forward from bombing
out and to do something if the string is not found. For instance, if
the string is found I want to execute certain commands and if it is
not found then I want to do something else.
This might help get some people's gander up: I used to use Unipress emacs
and this version of emacs was able to do the above. Please, please tell
me there is some way of doing this in GNU emacs.
Thanks for any help.
===============================================================================
Jonathan Sweedler, Microprocessor Design, Intel Corp.
UUCP: {decwrl,hplabs,oliveb}!intelca!mipos3!mipos2!jsweedle
ARPA: jsweedle%mipos2.intel.com@relay.cs.net
Technical Details
Message-ID:
<815@inews.intel.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!olivea!orc!inews!jsweedle@mipos2.intel.comShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,6f8b507ca4d29177,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-11-05 15:52:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!olivea!orc!inews!jsweedle@mipos2.intel.com From: jsweedle@mipos2.intel.com (Jonathan Sweedler) Newsgroups: gnu.emacs.help Subject: Aborting a search nicely Message-ID: <815@inews.intel.com> Date: 5 Nov 90 23:52:46 GMT Sender: news@inews.intel.com Reply-To: jsweedle@mipos2.intel.com (Jonathan Sweedler) Organization: Intel Corp. Lines: 24 Posted: Tue Nov 6 00:52:46 1990