diff options
| author | Richard M. Stallman | 1994-10-13 03:35:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-13 03:35:55 +0000 |
| commit | 716c3024cd70198aa0f32ef5ba94bb7428188c4b (patch) | |
| tree | 581f1d1b60bfa4f6d8c31ce7bd09381e774d112c | |
| parent | dab0cb956404af13e6201bf641b54cffab5d0166 (diff) | |
| download | emacs-716c3024cd70198aa0f32ef5ba94bb7428188c4b.tar.gz emacs-716c3024cd70198aa0f32ef5ba94bb7428188c4b.zip | |
(ada-mode): Rename end-comment-column to ada-comment-end-column.
(ada-inline-comment): Likewise.
(ada-comment-end-column): Declare variable.
| -rw-r--r-- | lisp/ada.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ada.el b/lisp/ada.el index 72d00257d78..5ed51e320ca 100644 --- a/lisp/ada.el +++ b/lisp/ada.el | |||
| @@ -191,6 +191,8 @@ This does a lot more highlighting.") | |||
| 191 | 191 | ||
| 192 | (defvar ada-indent 4 "*Value is the number of columns to indent in Ada-Mode.") | 192 | (defvar ada-indent 4 "*Value is the number of columns to indent in Ada-Mode.") |
| 193 | 193 | ||
| 194 | (defvar ada-comment-end-column) | ||
| 195 | |||
| 194 | ;;;###autoload | 196 | ;;;###autoload |
| 195 | (defun ada-mode () | 197 | (defun ada-mode () |
| 196 | "This is a mode intended to support program development in Ada. | 198 | "This is a mode intended to support program development in Ada. |
| @@ -228,8 +230,8 @@ Variable `ada-indent' controls the number of spaces for indent/undent." | |||
| 228 | (setq mode-name "Ada") | 230 | (setq mode-name "Ada") |
| 229 | (make-local-variable 'comment-column) | 231 | (make-local-variable 'comment-column) |
| 230 | (setq comment-column 41) | 232 | (setq comment-column 41) |
| 231 | (make-local-variable 'end-comment-column) | 233 | (make-local-variable 'ada-comment-end-column) |
| 232 | (setq end-comment-column 72) | 234 | (setq ada-comment-end-column 72) |
| 233 | (set-syntax-table ada-mode-syntax-table) | 235 | (set-syntax-table ada-mode-syntax-table) |
| 234 | (make-local-variable 'paragraph-start) | 236 | (make-local-variable 'paragraph-start) |
| 235 | (setq paragraph-start (concat "^$\\|" page-delimiter)) | 237 | (setq paragraph-start (concat "^$\\|" page-delimiter)) |
| @@ -684,7 +686,7 @@ Invoke right after `ada-function-spec' or `ada-procedure-spec'." | |||
| 684 | start a new line." | 686 | start a new line." |
| 685 | (interactive) | 687 | (interactive) |
| 686 | (end-of-line) | 688 | (end-of-line) |
| 687 | (if (> (current-column) end-comment-column) (newline)) | 689 | (if (> (current-column) ada-comment-end-column) (newline)) |
| 688 | (if (< (current-column) comment-column) (indent-to comment-column)) | 690 | (if (< (current-column) comment-column) (indent-to comment-column)) |
| 689 | (insert " -- ")) | 691 | (insert " -- ")) |
| 690 | 692 | ||