aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2006-12-04 12:32:12 +0000
committerJuanma Barranquero2006-12-04 12:32:12 +0000
commitab074cb1be2a73c6a2f0484c5f607ee822d8d29b (patch)
tree693ba2767799009a2abb1a4c3cf00172985bd89a
parent56c5808a5d5964fa24abcb856ddbb5fcc4010d00 (diff)
downloademacs-ab074cb1be2a73c6a2f0484c5f607ee822d8d29b.tar.gz
emacs-ab074cb1be2a73c6a2f0484c5f607ee822d8d29b.zip
(ada-check-current): Doc fix.
(ada-make-body-gnatstub): Doc fix. Remove redundant `progn'.
-rw-r--r--lisp/progmodes/ada-xref.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index fc8b4cf3727..9996a697bb2 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -1190,7 +1190,7 @@ command, and should be either `comp_cmd' (default) or `check_cmd'."
1190 (compile (ada-quote-cmd cmd)))) 1190 (compile (ada-quote-cmd cmd))))
1191 1191
1192(defun ada-check-current (&optional arg) 1192(defun ada-check-current (&optional arg)
1193 "Recompile the current file. 1193 "Check the current file for syntax errors.
1194If ARG is not nil, ask for user confirmation of the command." 1194If ARG is not nil, ask for user confirmation of the command."
1195 (interactive "P") 1195 (interactive "P")
1196 (ada-compile-current arg 'check_cmd)) 1196 (ada-compile-current arg 'check_cmd))
@@ -2211,6 +2211,7 @@ This is a GNAT specific function that uses gnatkrunch."
2211(defun ada-make-body-gnatstub (&optional interactive) 2211(defun ada-make-body-gnatstub (&optional interactive)
2212 "Create an Ada package body in the current buffer. 2212 "Create an Ada package body in the current buffer.
2213This function uses the `gnatstub' program to create the body. 2213This function uses the `gnatstub' program to create the body.
2214If INTERACTIVE is nil, kill the current buffer.
2214This function typically is to be hooked into `ff-file-created-hook'." 2215This function typically is to be hooked into `ff-file-created-hook'."
2215 (interactive "p") 2216 (interactive "p")
2216 (ada-require-project-file) 2217 (ada-require-project-file)
@@ -2220,9 +2221,8 @@ This function typically is to be hooked into `ff-file-created-hook'."
2220 ;; If the current buffer is the body (as is the case when calling this 2221 ;; If the current buffer is the body (as is the case when calling this
2221 ;; function from ff-file-created-hook), then kill this temporary buffer 2222 ;; function from ff-file-created-hook), then kill this temporary buffer
2222 (unless interactive 2223 (unless interactive
2223 (progn 2224 (set-buffer-modified-p nil)
2224 (set-buffer-modified-p nil) 2225 (kill-buffer (current-buffer)))
2225 (kill-buffer (current-buffer))))
2226 2226
2227 2227
2228 ;; Make sure the current buffer is the spec (this might not be the case 2228 ;; Make sure the current buffer is the spec (this might not be the case