]> git.eshelyaron.com Git - emacs.git/commitdiff
(cperl-switch-to-doc-buffer): Don't use interactive-p.
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:42:19 +0000 (07:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:42:19 +0000 (07:42 +0000)
lisp/progmodes/cperl-mode.el

index e679a48d64286fc58eb9d12532b8e9617f57e9ed..94458df56e89de30eb4efa904d15668aa60d762d 100644 (file)
@@ -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)