Function: texinfo-copy-menu-title
texinfo-copy-menu-title is a byte-compiled function defined in
texnfo-upd.el.gz.
Signature
(texinfo-copy-menu-title)
Documentation
Return the title of the section preceding the menu as a string.
If such a title cannot be found, return an empty string. Do not move point.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
(defun texinfo-copy-menu-title ()
"Return the title of the section preceding the menu as a string.
If such a title cannot be found, return an empty string. Do not move
point."
(let ((case-fold-search t))
(save-excursion
(if (re-search-backward
(concat
"\\(^@top"
"\\|" ; or
texinfo-section-types-regexp ; all other section types
"\\)")
nil
t)
(progn
(beginning-of-line)
(forward-word-strictly 1) ; skip over section type
(skip-chars-forward " \t") ; and over spaces
(buffer-substring
(point)
(progn (end-of-line) (point))))
""))))