diff options
| author | Deepak Goel | 2007-12-06 18:36:46 +0000 |
|---|---|---|
| committer | Deepak Goel | 2007-12-06 18:36:46 +0000 |
| commit | 768b14f8a010ac4a86ae9d9d6a80f06d429f4372 (patch) | |
| tree | cb2ff7d8c334abf6ddcd7b63cf9dc8a7407f5d64 | |
| parent | e9e4d61914ede6f19c75d1d6962c2977a1be213b (diff) | |
| download | emacs-768b14f8a010ac4a86ae9d9d6a80f06d429f4372.tar.gz emacs-768b14f8a010ac4a86ae9d9d6a80f06d429f4372.zip | |
Fix buggy `error' calls in progmodes/
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/idlw-shell.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 2 |
4 files changed, 17 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 239a7b08af1..5ad97fe4571 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2007-12-06 D. Goel <deego3@gmail.com> | 1 | 2007-12-06 D. Goel <deego3@gmail.com> |
| 2 | 2 | ||
| 3 | * progmodes/vhdl-mode.el (vhdl-template-modify): Ditto. | ||
| 4 | |||
| 5 | * progmodes/idlw-shell.el (idlwave-shell-send-command): Ditto. | ||
| 6 | (idlwave-shell-display-line): Ditto. | ||
| 7 | |||
| 8 | * progmodes/ada-xref.el (ada-find-file): Ditto. | ||
| 9 | (ada-get-all-references): Ditto. | ||
| 10 | (ada-xref-find-in-modified-ali): Ditto. | ||
| 11 | (ada-find-in-src-path): Ditto. | ||
| 12 | |||
| 3 | * net/trampver.el (x): Ditto. | 13 | * net/trampver.el (x): Ditto. |
| 4 | 14 | ||
| 5 | * mail/uce.el (uce-reply-to-uce): Ditto. | 15 | * mail/uce.el (uce-reply-to-uce): Ditto. |
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index ddea4c293df..a92705f92fa 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -564,7 +564,7 @@ Completion is available." | |||
| 564 | (let ((file (ada-find-src-file-in-dir filename))) | 564 | (let ((file (ada-find-src-file-in-dir filename))) |
| 565 | (if file | 565 | (if file |
| 566 | (find-file file) | 566 | (find-file file) |
| 567 | (error (concat filename " not found in src_dir"))))) | 567 | (error "%s" (concat filename " not found in src_dir"))))) |
| 568 | 568 | ||
| 569 | 569 | ||
| 570 | ;; ----- Utilities ------------------------------------------------- | 570 | ;; ----- Utilities ------------------------------------------------- |
| @@ -1722,7 +1722,7 @@ Information is extracted from the ali file." | |||
| 1722 | ;; No more idea to find the declaration. Give up | 1722 | ;; No more idea to find the declaration. Give up |
| 1723 | (progn | 1723 | (progn |
| 1724 | (kill-buffer ali-buffer) | 1724 | (kill-buffer ali-buffer) |
| 1725 | (error (concat "No declaration of " (ada-name-of identlist) | 1725 | (error "%s" (concat "No declaration of " (ada-name-of identlist) |
| 1726 | " found.")) | 1726 | " found.")) |
| 1727 | ))) | 1727 | ))) |
| 1728 | ) | 1728 | ) |
| @@ -1808,7 +1808,7 @@ This function is disabled for operators, and only works for identifiers." | |||
| 1808 | ;; none => error | 1808 | ;; none => error |
| 1809 | ((= len 0) | 1809 | ((= len 0) |
| 1810 | (kill-buffer (current-buffer)) | 1810 | (kill-buffer (current-buffer)) |
| 1811 | (error (concat "No declaration of " | 1811 | (error "%s" (concat "No declaration of " |
| 1812 | (ada-name-of identlist) | 1812 | (ada-name-of identlist) |
| 1813 | " recorded in .ali file"))) | 1813 | " recorded in .ali file"))) |
| 1814 | 1814 | ||
| @@ -2011,7 +2011,7 @@ the declaration and documentation of the subprograms one is using." | |||
| 2011 | (string-to-number (nth 2 (car list))) | 2011 | (string-to-number (nth 2 (car list))) |
| 2012 | identlist | 2012 | identlist |
| 2013 | other-frame) | 2013 | other-frame) |
| 2014 | (error (concat (caar list) " not found in src_dir"))) | 2014 | (error "%s" (concat (caar list) " not found in src_dir"))) |
| 2015 | (message "This is only a (good) guess at the cross-reference.") | 2015 | (message "This is only a (good) guess at the cross-reference.") |
| 2016 | ) | 2016 | ) |
| 2017 | 2017 | ||
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index eebfd377a7e..153b95e65e4 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el | |||
| @@ -1322,7 +1322,7 @@ message, independent of what HIDE is set to." | |||
| 1322 | (if (or (not (setq buf (get-buffer (idlwave-shell-buffer)))) | 1322 | (if (or (not (setq buf (get-buffer (idlwave-shell-buffer)))) |
| 1323 | (not (setq proc (get-buffer-process buf)))) | 1323 | (not (setq proc (get-buffer-process buf)))) |
| 1324 | (if (not idlwave-shell-automatic-start) | 1324 | (if (not idlwave-shell-automatic-start) |
| 1325 | (error | 1325 | (error "%s" |
| 1326 | (substitute-command-keys | 1326 | (substitute-command-keys |
| 1327 | "You need to first start an IDL shell with \\[idlwave-shell]")) | 1327 | "You need to first start an IDL shell with \\[idlwave-shell]")) |
| 1328 | (idlwave-shell-recenter-shell-window) | 1328 | (idlwave-shell-recenter-shell-window) |
| @@ -2375,7 +2375,7 @@ matter what the settings of that variable." | |||
| 2375 | (if (not (idlwave-shell-valid-frame frame)) | 2375 | (if (not (idlwave-shell-valid-frame frame)) |
| 2376 | ;; fixme: errors are dangerous in shell filters. but i think i | 2376 | ;; fixme: errors are dangerous in shell filters. but i think i |
| 2377 | ;; have never encountered this one. | 2377 | ;; have never encountered this one. |
| 2378 | (error (concat "invalid frame - unable to access file: " (car frame))) | 2378 | (error "%s" (concat "invalid frame - unable to access file: " (car frame))) |
| 2379 | ;;; | 2379 | ;;; |
| 2380 | ;;; buffer : the buffer to display a line in. | 2380 | ;;; buffer : the buffer to display a line in. |
| 2381 | ;;; select-shell: current buffer is the shell. | 2381 | ;;; select-shell: current buffer is the shell. |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index df315e4f46e..5b14e6a857f 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -9095,7 +9095,7 @@ otherwise." | |||
| 9095 | (progn (delete-region (point) (progn (end-of-line) (point))) | 9095 | (progn (delete-region (point) (progn (end-of-line) (point))) |
| 9096 | (vhdl-template-insert-date)) | 9096 | (vhdl-template-insert-date)) |
| 9097 | (unless noerror | 9097 | (unless noerror |
| 9098 | (error (concat "ERROR: Modification date prefix string \"" | 9098 | (error "%s" (concat "ERROR: Modification date prefix string \"" |
| 9099 | vhdl-modify-date-prefix-string "\" not found"))))))) | 9099 | vhdl-modify-date-prefix-string "\" not found"))))))) |
| 9100 | 9100 | ||
| 9101 | (defun vhdl-template-modify-noerror () | 9101 | (defun vhdl-template-modify-noerror () |