]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix buggy `error' calls in progmodes/
authorDeepak Goel <deego@gnufans.org>
Thu, 6 Dec 2007 18:36:46 +0000 (18:36 +0000)
committerDeepak Goel <deego@gnufans.org>
Thu, 6 Dec 2007 18:36:46 +0000 (18:36 +0000)
lisp/ChangeLog
lisp/progmodes/ada-xref.el
lisp/progmodes/idlw-shell.el
lisp/progmodes/vhdl-mode.el

index 239a7b08af148a9b825e1c14d5c1e928d255c13f..5ad97fe4571e09974474d7d5175cfe8ad9200e74 100644 (file)
@@ -1,5 +1,15 @@
 2007-12-06  D. Goel  <deego3@gmail.com>
 
+       * progmodes/vhdl-mode.el (vhdl-template-modify): Ditto.
+
+       * progmodes/idlw-shell.el (idlwave-shell-send-command): Ditto.
+       (idlwave-shell-display-line): Ditto.
+
+       * progmodes/ada-xref.el (ada-find-file): Ditto.
+       (ada-get-all-references): Ditto.
+       (ada-xref-find-in-modified-ali): Ditto.
+       (ada-find-in-src-path): Ditto.
+
        * net/trampver.el (x): Ditto.
 
        * mail/uce.el (uce-reply-to-uce): Ditto.
index ddea4c293df836cc6d527e820683f1c42513ea30..a92705f92fa663d9f31eb2d9c7f88b990601101b 100644 (file)
@@ -564,7 +564,7 @@ Completion is available."
   (let ((file (ada-find-src-file-in-dir filename)))
     (if file
        (find-file file)
-      (error (concat filename " not found in src_dir")))))
+      (error "%s" (concat filename " not found in src_dir")))))
 
 
 ;; ----- Utilities -------------------------------------------------
@@ -1722,7 +1722,7 @@ Information is extracted from the ali file."
          ;; No more idea to find the declaration.  Give up
          (progn
            (kill-buffer ali-buffer)
-           (error (concat "No declaration of " (ada-name-of identlist)
+           (error "%s" (concat "No declaration of " (ada-name-of identlist)
                           " found."))
            )))
       )
@@ -1808,7 +1808,7 @@ This function is disabled for operators, and only works for identifiers."
           ;; none => error
           ((= len 0)
            (kill-buffer (current-buffer))
-           (error (concat "No declaration of "
+           (error "%s" (concat "No declaration of "
                           (ada-name-of identlist)
                           " recorded in .ali file")))
 
@@ -2011,7 +2011,7 @@ the declaration and documentation of the subprograms one is using."
                                  (string-to-number (nth 2 (car list)))
                                  identlist
                                  other-frame)
-       (error (concat (caar list) " not found in src_dir")))
+       (error "%s" (concat (caar list) " not found in src_dir")))
       (message "This is only a (good) guess at the cross-reference.")
       )
 
index eebfd377a7edc6544fcdae1c63dd42d8a4945fac..153b95e65e4f054293751096d92170cd1e6c9e14 100644 (file)
@@ -1322,7 +1322,7 @@ message, independent of what HIDE is set to."
     (if (or (not (setq buf (get-buffer (idlwave-shell-buffer))))
            (not (setq proc (get-buffer-process buf))))
        (if (not idlwave-shell-automatic-start)
-           (error
+           (error "%s"
             (substitute-command-keys
              "You need to first start an IDL shell with \\[idlwave-shell]"))
          (idlwave-shell-recenter-shell-window)
@@ -2375,7 +2375,7 @@ matter what the settings of that variable."
     (if (not (idlwave-shell-valid-frame frame))
        ;; fixme: errors are dangerous in shell filters.  but i think i
        ;; have never encountered this one.
-        (error (concat "invalid frame - unable to access file: " (car frame)))
+        (error "%s" (concat "invalid frame - unable to access file: " (car frame)))
 ;;;
 ;;; buffer : the buffer to display a line in.
 ;;; select-shell: current buffer is the shell.
index df315e4f46e085014153926f6528ca79e1818673..5b14e6a857f4d7cacd371e0d4d3305f57c544ea7 100644 (file)
@@ -9095,7 +9095,7 @@ otherwise."
         (progn (delete-region (point) (progn (end-of-line) (point)))
                (vhdl-template-insert-date))
        (unless noerror
-        (error (concat "ERROR:  Modification date prefix string \""
+        (error "%s" (concat "ERROR:  Modification date prefix string \""
                        vhdl-modify-date-prefix-string "\" not found")))))))
 
 (defun vhdl-template-modify-noerror ()