aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Goel2005-09-18 12:31:28 +0000
committerDeepak Goel2005-09-18 12:31:28 +0000
commit29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab (patch)
treeb0b5281e027e49f576c9bfcff58da0d4e7025fed
parent5673af85e4a427c550b5a85825340250bfa36c9c (diff)
downloademacs-29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab.tar.gz
emacs-29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab.zip
Message format fixes, commit no. 3
-rw-r--r--lisp/progmodes/ada-mode.el26
-rw-r--r--lisp/progmodes/ada-xref.el2
-rw-r--r--lisp/progmodes/cmacexp.el4
-rw-r--r--lisp/progmodes/ebnf2ps.el4
-rw-r--r--lisp/progmodes/flymake.el2
-rw-r--r--lisp/progmodes/gud.el2
-rw-r--r--lisp/progmodes/idlw-shell.el2
-rw-r--r--lisp/progmodes/idlwave.el4
-rw-r--r--lisp/progmodes/ps-mode.el2
-rw-r--r--lisp/progmodes/sh-script.el14
-rw-r--r--lisp/progmodes/vhdl-mode.el14
11 files changed, 38 insertions, 38 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index 3b6a6d611d2..6a6d63a169a 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -1539,7 +1539,7 @@ word itself has a special casing."
1539 1539
1540 (ada-save-exceptions-to-file file-name) 1540 (ada-save-exceptions-to-file file-name)
1541 1541
1542 (message (concat "Defining " word " as a casing exception")))) 1542 (message "%s" (concat "Defining " word " as a casing exception"))))
1543 1543
1544(defun ada-case-read-exceptions-from-file (file-name) 1544(defun ada-case-read-exceptions-from-file (file-name)
1545 "Read the content of the casing exception file FILE-NAME." 1545 "Read the content of the casing exception file FILE-NAME."
@@ -2191,17 +2191,17 @@ This function is intended to be bound to the C-m and C-j keys."
2191 2191
2192 (if (equal (cdr cur-indent) '(0)) 2192 (if (equal (cdr cur-indent) '(0))
2193 (message (concat "same indentation as line " (number-to-string line))) 2193 (message (concat "same indentation as line " (number-to-string line)))
2194 (message (mapconcat (lambda(x) 2194 (message "%s" (mapconcat (lambda(x)
2195 (cond 2195 (cond
2196 ((symbolp x) 2196 ((symbolp x)
2197 (symbol-name x)) 2197 (symbol-name x))
2198 ((numberp x) 2198 ((numberp x)
2199 (number-to-string x)) 2199 (number-to-string x))
2200 ((listp x) 2200 ((listp x)
2201 (concat "- " (symbol-name (cadr x)))) 2201 (concat "- " (symbol-name (cadr x))))
2202 )) 2202 ))
2203 (cdr cur-indent) 2203 (cdr cur-indent)
2204 " + ")))) 2204 " + "))))
2205 (save-excursion 2205 (save-excursion
2206 (goto-char (car cur-indent)) 2206 (goto-char (car cur-indent))
2207 (sit-for 1)))) 2207 (sit-for 1))))
@@ -2214,7 +2214,7 @@ command like:
2214 2214
2215 (while command-line-args-left 2215 (while command-line-args-left
2216 (let ((source (car command-line-args-left))) 2216 (let ((source (car command-line-args-left)))
2217 (message (concat "formating " source)) 2217 (message "Formating %s" source)
2218 (find-file source) 2218 (find-file source)
2219 (ada-indent-region (point-min) (point-max)) 2219 (ada-indent-region (point-min) (point-max))
2220 (ada-adjust-case-buffer) 2220 (ada-adjust-case-buffer)
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index 74b5694e8c3..241296d8f67 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -325,7 +325,7 @@ replaced by the name including the extension."
325 ;; Check if there is an environment variable with the same name 325 ;; Check if there is an environment variable with the same name
326 (if (null value) 326 (if (null value)
327 (if (not (setq value (getenv name))) 327 (if (not (setq value (getenv name)))
328 (message (concat "No environment variable " name " found")))) 328 (message "%s" (concat "No environment variable " name " found"))))
329 329
330 (cond 330 (cond
331 ((null value) 331 ((null value)
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el
index e2bcf984586..b3051f37b9d 100644
--- a/lisp/progmodes/cmacexp.el
+++ b/lisp/progmodes/cmacexp.el
@@ -346,13 +346,13 @@ Optional arg DISPLAY non-nil means show messages in the echo area."
346 (format "\n#line %d \"%s\"\n" startlinenum filename))) 346 (format "\n#line %d \"%s\"\n" startlinenum filename)))
347 347
348 ;; Call the preprocessor. 348 ;; Call the preprocessor.
349 (if display (message mymsg)) 349 (if display (message "%s" mymsg))
350 (setq exit-status 350 (setq exit-status
351 (call-process-region 1 (point-max) 351 (call-process-region 1 (point-max)
352 shell-file-name 352 shell-file-name
353 t (list t tempname) nil "-c" 353 t (list t tempname) nil "-c"
354 cppcommand)) 354 cppcommand))
355 (if display (message (concat mymsg "done"))) 355 (if display (message "%s" (concat mymsg "done")))
356 (if (= (buffer-size) 0) 356 (if (= (buffer-size) 0)
357 ;; Empty output is normal after a fatal error. 357 ;; Empty output is normal after a fatal error.
358 (insert "\nPreprocessor produced no output\n") 358 (insert "\nPreprocessor produced no output\n")
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index 72603722dc2..887e856ba1f 100644
--- a/lisp/progmodes/ebnf2ps.el
+++ b/lisp/progmodes/ebnf2ps.el
@@ -5,7 +5,7 @@
5 5
6;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> 6;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
7;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> 7;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br>
8;; Time-stamp: <2004/11/19 22:30:34 vinicius> 8;; Time-stamp: <2005-09-18 07:27:20 deego>
9;; Keywords: wp, ebnf, PostScript 9;; Keywords: wp, ebnf, PostScript
10;; Version: 4.2 10;; Version: 4.2
11;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ 11;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
@@ -4674,7 +4674,7 @@ killed after process termination."
4674 (goto-char the-point) 4674 (goto-char the-point)
4675 (if ebnf-stop-on-error 4675 (if ebnf-stop-on-error
4676 (error error-msg) 4676 (error error-msg)
4677 (message error-msg))) 4677 (message "%s" error-msg)))
4678 ;; generated output OK 4678 ;; generated output OK
4679 (gen-func 4679 (gen-func
4680 nil) 4680 nil)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index e5089d84fb0..9ceee6f6920 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -183,7 +183,7 @@ TEXT is a format control string, and the remaining arguments ARGS
183are the string substitutions (see `format')." 183are the string substitutions (see `format')."
184 (if (<= level flymake-log-level) 184 (if (<= level flymake-log-level)
185 (let* ((msg (apply 'format text args))) 185 (let* ((msg (apply 'format text args)))
186 (message msg) 186 (message "%s" msg)
187 ;;(with-temp-buffer 187 ;;(with-temp-buffer
188 ;; (insert msg) 188 ;; (insert msg)
189 ;; (insert "\n") 189 ;; (insert "\n")
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 1486825b07a..47d74f00aec 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1865,7 +1865,7 @@ extension EXTN. Normally EXTN is given as the regular expression
1865 1865
1866 ;; Anything else means the input is invalid. 1866 ;; Anything else means the input is invalid.
1867 (t 1867 (t
1868 (message (format "Error parsing file %s." file)) 1868 (message "Error parsing file %s." file)
1869 (throw 'abort nil)))))) 1869 (throw 'abort nil))))))
1870 l)) 1870 l))
1871 1871
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index cc706195cc2..7dc12226722 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -2263,7 +2263,7 @@ overlays."
2263 (idlwave-shell-display-line 2263 (idlwave-shell-display-line
2264 (nth idlwave-shell-calling-stack-index stack) nil 2264 (nth idlwave-shell-calling-stack-index stack) nil
2265 (unless idlwave-shell-electric-debug-mode 'no-debug)) 2265 (unless idlwave-shell-electric-debug-mode 'no-debug))
2266 (message (or message 2266 (message "%s" (or message
2267 (format "In routine %s (stack level %d)" 2267 (format "In routine %s (stack level %d)"
2268 idlwave-shell-calling-stack-routine 2268 idlwave-shell-calling-stack-routine
2269 (- idlwave-shell-calling-stack-index)))))) 2269 (- idlwave-shell-calling-stack-index))))))
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 0f1ea571a85..ce689847e9c 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -3995,7 +3995,7 @@ you specify /."
3995 ;; Call etags 3995 ;; Call etags
3996 (if (not (string-match "^[ \\t]*$" item)) 3996 (if (not (string-match "^[ \\t]*$" item))
3997 (progn 3997 (progn
3998 (message (concat "Tagging " item "...")) 3998 (message "%s" (concat "Tagging " item "..."))
3999 (setq errbuf (get-buffer-create "*idltags-error*")) 3999 (setq errbuf (get-buffer-create "*idltags-error*"))
4000 (setq status (+ status 4000 (setq status (+ status
4001 (if (eq 0 (call-process 4001 (if (eq 0 (call-process
@@ -5188,7 +5188,7 @@ be set to nil to disable library catalog scanning."
5188 message-base 5188 message-base
5189 (not (string= idlwave-library-catalog-libname 5189 (not (string= idlwave-library-catalog-libname
5190 old-libname))) 5190 old-libname)))
5191 (message (concat message-base 5191 (message "%s" (concat message-base
5192 idlwave-library-catalog-libname)) 5192 idlwave-library-catalog-libname))
5193 (setq old-libname idlwave-library-catalog-libname)) 5193 (setq old-libname idlwave-library-catalog-libname))
5194 (when idlwave-library-catalog-routines 5194 (when idlwave-library-catalog-routines
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el
index fecf1f07eb5..b49fcafe186 100644
--- a/lisp/progmodes/ps-mode.el
+++ b/lisp/progmodes/ps-mode.el
@@ -630,7 +630,7 @@ defines the beginning of a group. These tokens are: { [ <<"
630 (current-column)) 630 (current-column))
631 (error 631 (error
632 (ding) 632 (ding)
633 (message (error-message-string err)) 633 (message "%s" (error-message-string err))
634 0)) 634 0))
635 (let (target) 635 (let (target)
636 (if (not (re-search-backward "[^ \t\n\r\f][ \t\n\r\f]*\\=" nil t)) 636 (if (not (re-search-backward "[^ \t\n\r\f][ \t\n\r\f]*\\=" nil t))
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index e37390f5b80..fc3f0beee04 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -2572,9 +2572,9 @@ If INFO is supplied it is used, else it is calculated from current line."
2572 (if (numberp blinkpos) 2572 (if (numberp blinkpos)
2573 (save-excursion 2573 (save-excursion
2574 (goto-char blinkpos) 2574 (goto-char blinkpos)
2575 (message msg) 2575 (if msg (message "%s" msg) (message nil))
2576 (sit-for blink-matching-delay)) 2576 (sit-for blink-matching-delay))
2577 (message msg))) 2577 (if message (message "%s" msg) (message nil))))
2578 2578
2579(defun sh-show-indent (arg) 2579(defun sh-show-indent (arg)
2580 "Show the how the currently line would be indented. 2580 "Show the how the currently line would be indented.
@@ -2591,7 +2591,7 @@ we are indenting relative to, if applicable."
2591 (curr-indent (current-indentation)) 2591 (curr-indent (current-indentation))
2592 val msg) 2592 val msg)
2593 (if (stringp var) 2593 (if (stringp var)
2594 (message (setq msg var)) 2594 (message "%s" (setq msg var))
2595 (setq val (sh-calculate-indent info)) 2595 (setq val (sh-calculate-indent info))
2596 2596
2597 (if (eq curr-indent val) 2597 (if (eq curr-indent val)
@@ -2610,8 +2610,8 @@ we are indenting relative to, if applicable."
2610 (if (and info (listp (car info)) 2610 (if (and info (listp (car info))
2611 (eq (car (car info)) t)) 2611 (eq (car (car info)) t))
2612 (sh-blink (nth 1 (car info)) msg) 2612 (sh-blink (nth 1 (car info)) msg)
2613 (message msg))) 2613 (message "%s" msg)))
2614 (message msg)) 2614 (message "%s" msg))
2615 )) 2615 ))
2616 2616
2617(defun sh-set-indent () 2617(defun sh-set-indent ()
@@ -2624,7 +2624,7 @@ for a new value for it."
2624 (var (sh-get-indent-var-for-line info)) 2624 (var (sh-get-indent-var-for-line info))
2625 val old-val indent-val) 2625 val old-val indent-val)
2626 (if (stringp var) 2626 (if (stringp var)
2627 (message (format "Cannot set indent - %s" var)) 2627 (message "Cannot set indent - %s" var)
2628 (setq old-val (symbol-value var)) 2628 (setq old-val (symbol-value var))
2629 (setq val (sh-read-variable var)) 2629 (setq val (sh-read-variable var))
2630 (condition-case nil 2630 (condition-case nil
@@ -2675,7 +2675,7 @@ unless optional argument ARG (the prefix when interactive) is non-nil."
2675 (curr-indent (current-indentation))) 2675 (curr-indent (current-indentation)))
2676 (cond 2676 (cond
2677 ((stringp var) 2677 ((stringp var)
2678 (message (format "Cannot learn line - %s" var))) 2678 (message "Cannot learn line - %s" var))
2679 ((eq var 'sh-indent-comment) 2679 ((eq var 'sh-indent-comment)
2680 ;; This is arbitrary... 2680 ;; This is arbitrary...
2681 ;; - if curr-indent is 0, set to curr-indent 2681 ;; - if curr-indent is 0, set to curr-indent
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 4014029b113..04ddf7b8fcd 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -2157,7 +2157,7 @@ Ignore byte-compiler warnings you might see."
2157 2157
2158(defun vhdl-warning (string &optional nobeep) 2158(defun vhdl-warning (string &optional nobeep)
2159 "Print out warning STRING and beep." 2159 "Print out warning STRING and beep."
2160 (message (concat "WARNING: " string)) 2160 (message "WARNING: %s" string)
2161 (unless (or nobeep noninteractive) (beep))) 2161 (unless (or nobeep noninteractive) (beep)))
2162 2162
2163(defun vhdl-print-warnings () 2163(defun vhdl-print-warnings ()
@@ -2165,7 +2165,7 @@ Ignore byte-compiler warnings you might see."
2165 (let ((no-warnings (length vhdl-warnings))) 2165 (let ((no-warnings (length vhdl-warnings)))
2166 (setq vhdl-warnings (nreverse vhdl-warnings)) 2166 (setq vhdl-warnings (nreverse vhdl-warnings))
2167 (while vhdl-warnings 2167 (while vhdl-warnings
2168 (message (concat "WARNING: " (car vhdl-warnings))) 2168 (message "WARNING: %s" (car vhdl-warnings))
2169 (setq vhdl-warnings (cdr vhdl-warnings))) 2169 (setq vhdl-warnings (cdr vhdl-warnings)))
2170 (beep) 2170 (beep)
2171 (when (> no-warnings 1) 2171 (when (> no-warnings 1)
@@ -10605,7 +10605,7 @@ but not if inside a comment or quote)."
10605 (vhdl-template-invoked-by-hook t)) 10605 (vhdl-template-invoked-by-hook t))
10606 (let ((caught (catch 'abort 10606 (let ((caught (catch 'abort
10607 (funcall func)))) 10607 (funcall func))))
10608 (when (stringp caught) (message caught))) 10608 (when (stringp caught) (message "%s" caught)))
10609 (when (= invoke-char ?-) (setq abbrev-start-location (point))) 10609 (when (= invoke-char ?-) (setq abbrev-start-location (point)))
10610 ;; delete CR which is still in event queue 10610 ;; delete CR which is still in event queue
10611 (if (fboundp 'enqueue-eval-event) 10611 (if (fboundp 'enqueue-eval-event)
@@ -10768,7 +10768,7 @@ but not if inside a comment or quote)."
10768(defun vhdl-template-insert-fun (fun) 10768(defun vhdl-template-insert-fun (fun)
10769 "Call FUN to insert a built-in template." 10769 "Call FUN to insert a built-in template."
10770 (let ((caught (catch 'abort (when fun (funcall fun))))) 10770 (let ((caught (catch 'abort (when fun (funcall fun)))))
10771 (when (stringp caught) (message caught)))) 10771 (when (stringp caught) (message "%s" caught))))
10772 10772
10773 10773
10774;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 10774;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -11695,7 +11695,7 @@ reflected in a subsequent paste operation."
11695 (setq arch-buffer (current-buffer)) 11695 (setq arch-buffer (current-buffer))
11696 (when ent-buffer (set-buffer ent-buffer) (save-buffer)) 11696 (when ent-buffer (set-buffer ent-buffer) (save-buffer))
11697 (set-buffer arch-buffer) (save-buffer)) 11697 (set-buffer arch-buffer) (save-buffer))
11698 (message 11698 (message "%s"
11699 (concat (format "Pasting port as testbench \"%s(%s)\"...done" 11699 (concat (format "Pasting port as testbench \"%s(%s)\"...done"
11700 ent-name arch-name) 11700 ent-name arch-name)
11701 (and ent-file-name 11701 (and ent-file-name
@@ -15498,7 +15498,7 @@ expansion function)."
15498 (setq arch-buffer (current-buffer)) 15498 (setq arch-buffer (current-buffer))
15499 (when ent-buffer (set-buffer ent-buffer) (save-buffer)) 15499 (when ent-buffer (set-buffer ent-buffer) (save-buffer))
15500 (set-buffer arch-buffer) (save-buffer) 15500 (set-buffer arch-buffer) (save-buffer)
15501 (message 15501 (message "%s"
15502 (concat (format "Creating component \"%s(%s)\"...done" ent-name arch-name) 15502 (concat (format "Creating component \"%s(%s)\"...done" ent-name arch-name)
15503 (and ent-file-name 15503 (and ent-file-name
15504 (format "\n File created: \"%s\"" ent-file-name)) 15504 (format "\n File created: \"%s\"" ent-file-name))
@@ -16120,7 +16120,7 @@ current project/directory."
16120 (vhdl-template-footer) 16120 (vhdl-template-footer)
16121 (vhdl-comment-display-line) (insert "\n")) 16121 (vhdl-comment-display-line) (insert "\n"))
16122 (save-buffer)) 16122 (save-buffer))
16123 (message 16123 (message "%s"
16124 (concat (format "Generating configuration \"%s\"...done" conf-name) 16124 (concat (format "Generating configuration \"%s\"...done" conf-name)
16125 (and conf-file-name 16125 (and conf-file-name
16126 (format "\n File created: \"%s\"" conf-file-name)))))) 16126 (format "\n File created: \"%s\"" conf-file-name))))))