GNU Info

Info Node: (emacs-lisp-intro.info)search Exercises

(emacs-lisp-intro.info)search Exercises


Prev: cons & search-fwd Review Up: Cutting & Storing Text
Enter node , (file) or (file)node

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-forward' for the name of
     this function; if you do, you will overwrite the existing version
     of `search-forward' that comes with Emacs.  Use a name such as
     `test-search' instead.)

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


automatically generated by info2www version 1.2.2.9