Function: cperl-switch-to-doc-buffer

cperl-switch-to-doc-buffer is an interactive and byte-compiled function defined in cperl-mode.el.gz.

Signature

(cperl-switch-to-doc-buffer &optional INTERACTIVE)

Documentation

Go to the Perl documentation buffer and insert the documentation.

If INTERACTIVE, open a new window for this buffer.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defun cperl-switch-to-doc-buffer (&optional interactive)
  "Go to the Perl documentation buffer and insert the documentation.
If INTERACTIVE, open a new window for this buffer."
  (interactive "p")
  (let ((buf (get-buffer-create cperl-doc-buffer)))
    (if interactive
	(switch-to-buffer-other-window buf)
      (set-buffer buf))
    (if (= (buffer-size) 0)
	(progn
	  (insert (documentation-property 'cperl-short-docs
					  'variable-documentation))
	  (setq buffer-read-only t)))))