Function: emacs-news-find-heading

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

Signature

(emacs-news-find-heading HEADING)

Documentation

Go to HEADING in the Emacs NEWS file.

Interactively, prompt for HEADING, with completion. A heading is a level-2 or level-3 header line (starts with 2 or 3 "*") that is followed by an empty line and another header line which starts with 3 "***" or 4 "****", respectively. Only such HEADINGs are accepted in interactive invocations.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/emacs-news-mode.el.gz
(defun emacs-news-find-heading (heading)
  "Go to HEADING in the Emacs NEWS file.
Interactively, prompt for HEADING, with completion.
A heading is a level-2 or level-3 header line (starts with 2 or 3 \"*\")
that is followed by an empty line and another header line which starts
with 3 \"***\" or 4 \"****\", respectively.
Only such HEADINGs are accepted in interactive invocations."
  (interactive (list
                (completing-read "Goto heading: "
                                 (emacs-news--sections "\\*\\*\\*? ")
                                 nil t))
               emacs-news-mode)
  (goto-char (point-min))
  (when (re-search-forward (concat "^*+ " (regexp-quote heading) "$") nil t)
    (beginning-of-line)))