Function: pascal-outline-mode

pascal-outline-mode is an interactive and byte-compiled function defined in pascal.el.gz.

Signature

(pascal-outline-mode &optional ARG)

Documentation

Outline-line minor mode for Pascal mode.

When enabled, portions of the text being edited may be made invisible. Pascal Outline mode provides some additional commands.

C-M-a (pascal-outline-prev-defun) - Move to previous function/procedure, hiding everything else.
C-M-e (pascal-outline-next-defun) - Move to next function/procedure, hiding everything else.
C-c C-d (pascal-outline-goto-defun) - Goto function/procedure prompted for in minibuffer,
hide all other functions.
C-c C-s (pascal-show-all) - Show the whole buffer.
C-c C-h (pascal-hide-other-defuns) - Hide everything but the current function (function under the cursor).
M-x pascal-outline-mode (pascal-outline-mode) - Leave Pascal Outline mode.

This is a minor mode. If called interactively, toggle the Pascal-Outline mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate the variable pascal-outline-mode(var)/pascal-outline-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/pascal.el.gz
(define-minor-mode pascal-outline-mode
  "Outline-line minor mode for Pascal mode.

When enabled, portions of the text being edited may be made
invisible.\\<pascal-outline-map>

Pascal Outline mode provides some additional commands.

\\[pascal-outline-prev-defun]\
\t- Move to previous function/procedure, hiding everything else.
\\[pascal-outline-next-defun]\
\t- Move to next function/procedure, hiding everything else.
\\[pascal-outline-goto-defun]\
\t- Goto function/procedure prompted for in minibuffer,
\t  hide all other functions.
\\[pascal-show-all]\t- Show the whole buffer.
\\[pascal-hide-other-defuns]\
\t- Hide everything but the current function (function under the cursor).
\\[pascal-outline-mode]\t- Leave Pascal Outline mode."
  :init-value nil :lighter " Outl" :keymap pascal-outline-map
  (add-to-invisibility-spec '(pascal . t))
  (unless pascal-outline-mode
    (pascal-show-all)))