Function: texinfo-delete-old-menu

texinfo-delete-old-menu is a byte-compiled function defined in texnfo-upd.el.gz.

Signature

(texinfo-delete-old-menu BEGINNING FIRST)

Documentation

Delete the old menu. Point must be in or after menu.

First argument is position of the beginning of the section in which the menu will be located; second argument is the position of the first node within the section.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
(defun texinfo-delete-old-menu (beginning first)
  "Delete the old menu.  Point must be in or after menu.
First argument is position of the beginning of the section in which
the menu will be located; second argument is the position of the first
node within the section."
  ;; No third arg to search, so error if search fails.
  (re-search-backward "^@menu" beginning)
  (delete-region (point)
		 (save-excursion
		   (re-search-forward "^@end menu" first)
		   (point))))