Mercurial > emacs
changeset 57823:d77a1264b555
(cperl-switch-to-doc-buffer): Don't use interactive-p.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 01 Nov 2004 07:42:19 +0000 |
parents | 7cda0787d8cd |
children | 83de34d9f04f |
files | lisp/progmodes/cperl-mode.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cperl-mode.el Mon Nov 01 07:41:08 2004 +0000 +++ b/lisp/progmodes/cperl-mode.el Mon Nov 01 07:42:19 2004 +0000 @@ -6664,11 +6664,11 @@ =pod Switch from Perl to POD. ") -(defun cperl-switch-to-doc-buffer () +(defun cperl-switch-to-doc-buffer (&optional interactive) "Go to the perl documentation buffer and insert the documentation." - (interactive) + (interactive "p") (let ((buf (get-buffer-create cperl-doc-buffer))) - (if (interactive-p) + (if interactive (switch-to-buffer-other-window buf) (set-buffer buf)) (if (= (buffer-size) 0)