Function: emacs-news-goto-section

emacs-news-goto-section is an interactive and byte-compiled function defined in emacs-news-mode.el.gz.

Signature

(emacs-news-goto-section SECTION)

Documentation

Go to SECTION in the Emacs NEWS file.

Interactively, prompt for SECTION, with completion. A section is a level-1 header line (has only one "*") that is followed by an empty line and another header line which starts with "** ". Only such SECTIONs are accepted in interactive invocations.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/emacs-news-mode.el.gz
(defun emacs-news-goto-section (section)
  "Go to SECTION in the Emacs NEWS file.
Interactively, prompt for SECTION, with completion.
A section is a level-1 header line (has only one \"*\") that is followed
by an empty line and another header line which starts with \"** \".
Only such SECTIONs are accepted in interactive invocations."
  (interactive (list
                (completing-read "Goto section: " (emacs-news--sections "\\* ")
                                 nil t))
               emacs-news-mode)
  (goto-char (point-min))
  (when (search-forward (concat "\n* " section) nil t)
    (beginning-of-line)))