]> code.delx.au - gnu-emacs/commitdiff
(ada-make-body-gnatstub): Don't use interactive-p.
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:44:08 +0000 (07:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:44:08 +0000 (07:44 +0000)
lisp/progmodes/ada-xref.el

index fc1d2d46ab37b7cbabca94b56410841100f12e74..472cfc3053eb8f35c700522483fc9561ddd51c0a 100644 (file)
@@ -2154,17 +2154,17 @@ This is a GNAT specific function that uses gnatkrunch."
   adaname
   )
 
-(defun ada-make-body-gnatstub ()
+(defun ada-make-body-gnatstub (&optional interactive)
   "Create an Ada package body in the current buffer.
 This function uses the `gnatstub' program to create the body.
 This function typically is to be hooked into `ff-file-created-hooks'."
-  (interactive)
+  (interactive "p")
 
   (save-some-buffers nil nil)
 
   ;; If the current buffer is the body (as is the case when calling this
   ;; function from ff-file-created-hooks), then kill this temporary buffer
-  (unless (interactive-p)
+  (unless interactive
     (progn
       (set-buffer-modified-p nil)
       (kill-buffer (current-buffer))))