diff options
| author | Karl Heuer | 1996-01-29 23:09:15 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-29 23:09:15 +0000 |
| commit | 4dd3b396429410d5033375cfb80f93560bf9d461 (patch) | |
| tree | 31df9b845c499fa159b69a6f512642d5f8e2d31b | |
| parent | ba4a8e51f9c1d179c845eb717d2161cbd815d04c (diff) | |
| download | emacs-4dd3b396429410d5033375cfb80f93560bf9d461.tar.gz emacs-4dd3b396429410d5033375cfb80f93560bf9d461.zip | |
(ada-indent-region, ada-check-matching-start, ada-check-defun-name): Fix error
format string.
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index d34f08b8586..cf74a914ea2 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -1408,9 +1408,7 @@ Moves to 'begin' if in a declarative part." | |||
| 1408 | (setq lines-remaining (1- lines-remaining))) | 1408 | (setq lines-remaining (1- lines-remaining))) |
| 1409 | ;; show line number where the error occurred | 1409 | ;; show line number where the error occurred |
| 1410 | (error | 1410 | (error |
| 1411 | (error (format "line %d: %s" | 1411 | (error "line %d: %s" (1+ (count-lines (point-min) (point))) err))) |
| 1412 | (1+ (count-lines (point-min) (point))) | ||
| 1413 | err) nil))) | ||
| 1414 | (message "indenting ... done"))) | 1412 | (message "indenting ... done"))) |
| 1415 | 1413 | ||
| 1416 | 1414 | ||
| @@ -2501,9 +2499,7 @@ This works by two steps: | |||
| 2501 | ;; Moves point to the matching block start. | 2499 | ;; Moves point to the matching block start. |
| 2502 | (ada-goto-matching-start 0) | 2500 | (ada-goto-matching-start 0) |
| 2503 | (if (not (looking-at (concat "\\<" keyword "\\>"))) | 2501 | (if (not (looking-at (concat "\\<" keyword "\\>"))) |
| 2504 | (error (concat | 2502 | (error "matching start is not '%s'" keyword))) |
| 2505 | "matching start is not '" | ||
| 2506 | keyword "'")))) | ||
| 2507 | 2503 | ||
| 2508 | 2504 | ||
| 2509 | (defun ada-check-defun-name (defun-name) | 2505 | (defun ada-check-defun-name (defun-name) |
| @@ -2542,14 +2538,9 @@ This works by two steps: | |||
| 2542 | ;; should be looking-at the correct name | 2538 | ;; should be looking-at the correct name |
| 2543 | ;; | 2539 | ;; |
| 2544 | (if (not (looking-at (concat "\\<" defun-name "\\>"))) | 2540 | (if (not (looking-at (concat "\\<" defun-name "\\>"))) |
| 2545 | (error | 2541 | (error "matching defun has different name: %s" |
| 2546 | (concat | 2542 | (buffer-substring (point) |
| 2547 | "matching defun has different name: " | 2543 | (progn (forward-sexp 1) (point))))))) |
| 2548 | (buffer-substring | ||
| 2549 | (point) | ||
| 2550 | (progn | ||
| 2551 | (forward-sexp 1) | ||
| 2552 | (point)))))))) | ||
| 2553 | 2544 | ||
| 2554 | 2545 | ||
| 2555 | (defun ada-goto-matching-decl-start (&optional noerror nogeneric) | 2546 | (defun ada-goto-matching-decl-start (&optional noerror nogeneric) |