Function: foldout-mouse-goto-heading

foldout-mouse-goto-heading is a byte-compiled function defined in foldout.el.gz.

Signature

(foldout-mouse-goto-heading EVENT)

Documentation

Go to the heading where the mouse EVENT started.

Signal an error if the event didn't occur on a heading.

Source Code

;; Defined in /usr/src/emacs/lisp/foldout.el.gz
(defun foldout-mouse-goto-heading (event)
  "Go to the heading where the mouse EVENT started.
Signal an error if the event didn't occur on a heading."
  (goto-char (posn-point (event-start event)))
  (or (outline-on-heading-p)
      ;; outline.el sometimes treats beginning-of-buffer as a heading
      ;; even though outline-on-heading returns nil.
      (save-excursion (beginning-of-line) (bobp))
      (error "Not a heading line")))