Mercurial > emacs
changeset 14415:db084c0ae4bd
(ada-indent-region, ada-check-matching-start, ada-check-defun-name): Fix error
format string.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 29 Jan 1996 23:09:15 +0000 |
parents | 6e7bb4bd5010 |
children | 3ec65c6789eb |
files | lisp/progmodes/ada-mode.el |
diffstat | 1 files changed, 5 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/ada-mode.el Mon Jan 29 22:30:55 1996 +0000 +++ b/lisp/progmodes/ada-mode.el Mon Jan 29 23:09:15 1996 +0000 @@ -1408,9 +1408,7 @@ (setq lines-remaining (1- lines-remaining))) ;; show line number where the error occurred (error - (error (format "line %d: %s" - (1+ (count-lines (point-min) (point))) - err) nil))) + (error "line %d: %s" (1+ (count-lines (point-min) (point))) err))) (message "indenting ... done"))) @@ -2501,9 +2499,7 @@ ;; Moves point to the matching block start. (ada-goto-matching-start 0) (if (not (looking-at (concat "\\<" keyword "\\>"))) - (error (concat - "matching start is not '" - keyword "'")))) + (error "matching start is not '%s'" keyword))) (defun ada-check-defun-name (defun-name) @@ -2542,14 +2538,9 @@ ;; should be looking-at the correct name ;; (if (not (looking-at (concat "\\<" defun-name "\\>"))) - (error - (concat - "matching defun has different name: " - (buffer-substring - (point) - (progn - (forward-sexp 1) - (point)))))))) + (error "matching defun has different name: %s" + (buffer-substring (point) + (progn (forward-sexp 1) (point))))))) (defun ada-goto-matching-decl-start (&optional noerror nogeneric)