Function: texinfo-copy-section-title
texinfo-copy-section-title is a byte-compiled function defined in
texnfo-upd.el.gz.
Signature
(texinfo-copy-section-title)
Documentation
Return the title of the section as a string.
The title is used as a description line in the menu when one does not already exist.
Move point to the beginning of the appropriate section line by going
to the start of the text matched by last regexp searched for, which
must have been done by texinfo-menu-locate-entry-p.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
(defun texinfo-copy-section-title ()
"Return the title of the section as a string.
The title is used as a description line in the menu when one does not
already exist.
Move point to the beginning of the appropriate section line by going
to the start of the text matched by last regexp searched for, which
must have been done by `texinfo-menu-locate-entry-p'."
;; could use the same re-search as in `texinfo-menu-locate-entry-p'
;; instead of using `match-beginning'; such a variation would be
;; more general, but would waste information already collected
(goto-char (match-beginning 7)) ; match section name
(buffer-substring
(progn (forward-word-strictly 1) ; skip over section type
(skip-chars-forward " \t") ; and over spaces
(point))
(progn (end-of-line) (point))))