Function: foldout-mouse-show

foldout-mouse-show is an interactive and byte-compiled function defined in foldout.el.gz.

Signature

(foldout-mouse-show EVENT)

Documentation

Show what is hidden under the heading clicked on.

What gets exposed depends on the number of mouse clicks:-

1 expose body
2 expose subheadings
3 expose body and subheadings
4 expose entire subtree

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/foldout.el.gz
      (t 0)))))				; entire subtree

(defun foldout-mouse-show (event)
  "Show what is hidden under the heading clicked on.

What gets exposed depends on the number of mouse clicks:-

	1	expose body
	2	expose subheadings
	3	expose body and subheadings
	4	expose entire subtree"
  (interactive "@e")

  ;; swallow intervening mouse events so we only get the final click-count.
  (setq event (foldout-mouse-swallow-events event))

  ;; expose the text
  (foldout-mouse-goto-heading event)
  (let ((nclicks (event-click-count event)))
    (cond
     ((= nclicks 1) (outline-show-entry))
     ((= nclicks 2) (outline-show-children))
     ((= nclicks 3) (outline-show-entry) (outline-show-children))
     (t (outline-show-subtree)))))