;;; =======
;;;
;;; Many thanks to
-;;; Philippe Warroquiers (PW) <philippe@cfmu.eurocontrol.be> in particular,
+;;; Philippe Waroquiers (PW) <philippe@cfmu.eurocontrol.be> in particular,
;;; woodruff@stc.llnl.gov (John Woodruff)
;;; jj@ddci.dk (Jesper Joergensen)
;;; gse@ocsystems.com (Scott Evans)
"*Do we program in `ada83' or `ada95'?")
(defvar ada-case-keyword 'downcase-word
- "*Function to call to adjust the case of Ada keyworrds.
+ "*Function to call to adjust the case of Ada keywords.
It may be `downcase-word', `upcase-word', `ada-loose-case-word' or
`capitalize-word'.")
`capitalize-word'.")
(defvar ada-auto-case t
- "*Non-nil automatically changes casing of preceeding word while typing.
+ "*Non-nil automatically changes case of preceding word while typing.
Casing is done according to `ada-case-keyword', `ada-case-identifier'
and `ada-cacse-attribute'.")
(defvar ada-krunch-args "0"
"*Argument of gnatk8, a string containing the max number of characters.
-Set to 0, if you dont use crunched filenames.")
+Set to 0, if you don't use crunched filenames.")
;;; ---- end of user configurable variables
\f
The name is specified in `ada-external-pretty-print-program'. Saves the
current buffer in a directory specified by `ada-tmp-directory',
starts the pretty printer as external process on that file and then
-reloads the beautyfied program in the buffer and cleans up
+reloads the beautified program in the buffer and cleans up
`ada-tmp-directory'."
(interactive)
(let ((filename-with-path buffer-file-name)
(forward-line 1)
(setq block-done (1+ block-done))
(setq lines-remaining (1- lines-remaining)))
- ;; show line number where the error occured
+ ;; show line number where the error occurred
(error
(error (format "line %d: %s"
(1+ (count-lines (point-min) (point)))
(defun ada-get-indent-open-paren (orgpoint)
;; Returns the indentation (column #) for the new line after ORGPOINT.
- ;; Assumes point to be behind an open paranthesis not yet closed.
+ ;; Assumes point to be behind an open parenthesis not yet closed.
(ada-in-open-paren-p))
;;
(setq match-dat (ada-search-prev-end-stmt limit)))
;;
- ;; if found the correct end-stetement => goto next non-ws
+ ;; if found the correct end-statement => goto next non-ws
;;
(if match-dat
(goto-char (cdr match-dat)))
;; inside parentheses ?
(looking-at "(")
(backward-word 2)
- ;; right keyword before paranthesis ?
+ ;; right keyword before parenthesis ?
(looking-at (concat "\\<\\("
"procedure\\|function\\|body\\|package\\|"
"task\\|entry\\|accept\\)\\>"))