From: Richard M. Stallman Date: Mon, 1 Nov 2004 07:42:19 +0000 (+0000) Subject: (cperl-switch-to-doc-buffer): Don't use interactive-p. X-Git-Tag: ttn-vms-21-2-B4~4294 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=21df56d56b86b88565ebe9f05f1acbbfd676670f;p=emacs.git (cperl-switch-to-doc-buffer): Don't use interactive-p. --- diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index e679a48d642..94458df56e8 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -6664,11 +6664,11 @@ prototype \&SUB Returns prototype of the function given a reference. =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)