Searching Exercises
- Write an interactive function that searches for a string. If the search finds the string, leave point after it and display a message that says “Found!”. (Do not use
search-forwardfor the name of this function; if you do, you will overwrite the existing version ofsearch-forwardthat comes with Emacs. Use a name such astest-searchinstead.) - Write a function that prints the third element of the kill ring in the echo area, if any; if the kill ring does not contain a third element, print an appropriate message.