Function: texinfo-copy-next-section-title
texinfo-copy-next-section-title is a byte-compiled function defined in
texnfo-upd.el.gz.
Signature
(texinfo-copy-next-section-title)
Documentation
Return the name of the immediately following section as a string.
Start with point at the beginning of the node line. Leave point at the same place. If there is no title, returns an empty string.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texnfo-upd.el.gz
(defun texinfo-copy-next-section-title ()
"Return the name of the immediately following section as a string.
Start with point at the beginning of the node line. Leave point at the
same place. If there is no title, returns an empty string."
(save-excursion
(end-of-line)
(let ((node-end (or
(save-excursion
(if (re-search-forward "\\(^@node\\)" nil t)
(match-beginning 0)))
(point-max))))
(if (re-search-forward texinfo-section-types-regexp node-end t)
(progn
(beginning-of-line)
;; copy title
(let ((title
(buffer-substring
(progn (forward-word-strictly 1) ; skip over section type
(skip-chars-forward " \t") ; and over spaces
(point))
(progn (end-of-line) (point)))))
title))
""))))