Function: texinfo-menu-indent-description
texinfo-menu-indent-description is a byte-compiled function defined in
texnfo-upd.el.gz.
Signature
(texinfo-menu-indent-description TO-COLUMN-NUMBER)
Documentation
Indent the Texinfo file menu description to TO-COLUMN-NUMBER.
Start with point just after the word menu in the @menu line and
leave point on the line before the @end menu line. Does not indent
second and subsequent lines of a multi-line description.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
(defun texinfo-menu-indent-description (to-column-number)
"Indent the Texinfo file menu description to TO-COLUMN-NUMBER.
Start with point just after the word `menu' in the `@menu' line and
leave point on the line before the `@end menu' line. Does not indent
second and subsequent lines of a multi-line description."
(let* ((beginning-of-next-line (point)))
(while (< beginning-of-next-line
(save-excursion ; beginning of end menu line
(goto-char (texinfo-menu-end))
(beginning-of-line)
(point)))
(when (re-search-forward "\\* \\(.*::\\|.*: [^.,\t\n]+[.,\t]\\)"
(texinfo-menu-end)
t)
(let ((beginning-white-space (point)))
(skip-chars-forward " \t") ; skip over spaces
(if (looking-at "\\(@\\|\\w\\)+") ; if there is text
(progn
;; remove pre-existing indentation
(delete-region beginning-white-space (point))
(indent-to-column to-column-number)))))
;; position point at beginning of next line
(forward-line 1)
(setq beginning-of-next-line (point)))))