Function: texinfo-old-menu-p

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

Signature

(texinfo-old-menu-p BEGINNING FIRST)

Documentation

Move point to the beginning of the menu for this section, if any.

Otherwise move point to the end of the first node of this section. Return t if a menu is found, nil otherwise.

First argument is the 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.

If no menu is found, the function inserts two newlines just before the end of the section, and leaves point there where a menu ought to be.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
;;; Handling the old menu

(defun texinfo-old-menu-p (beginning first)
  "Move point to the beginning of the menu for this section, if any.
Otherwise move point to the end of the first node of this section.
Return t if a menu is found, nil otherwise.

First argument is the 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.

If no menu is found, the function inserts two newlines just before the
end of the section, and leaves point there where a menu ought to be."
  (goto-char beginning)
  (if (re-search-forward "^@menu" first 'goto-end)
      t
    (insert "\n\n") (forward-line -2) nil))