1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 10:50:49 -08:00

Message format spec fixes (2)

This commit is contained in:
Deepak Goel 2005-09-18 12:28:30 +00:00
parent 8a26c16552
commit 5673af85e4
8 changed files with 26 additions and 22 deletions

View file

@ -4162,7 +4162,7 @@ If optional argument THIS-IS-LAST-POINT is non-nil, this point is the last."
(setq artist-key-is-drawing t) (setq artist-key-is-drawing t)
;; Feedback ;; Feedback
(message (substitute-command-keys (message "%s" (substitute-command-keys
(concat "First point set. " (concat "First point set. "
"Set next with \\[artist-key-set-point], " "Set next with \\[artist-key-set-point], "
"set last with C-u \\[artist-key-set-point]")))) "set last with C-u \\[artist-key-set-point]"))))

View file

@ -3007,7 +3007,7 @@ entry (for example, the year parts of the keys)."
(cdr field-list)) (cdr field-list))
t))) t)))
(if comment (if comment
(message (nth 1 comment)) (message "%s" (nth 1 comment))
(message "No comment available"))))) (message "No comment available")))))
(defun bibtex-make-field (field &optional move interactive) (defun bibtex-make-field (field &optional move interactive)

View file

@ -566,7 +566,7 @@ in your .emacs file.
(interactive-p)) (interactive-p))
(let ((binding (where-is-internal 'flyspell-auto-correct-word (let ((binding (where-is-internal 'flyspell-auto-correct-word
nil 'non-ascii))) nil 'non-ascii)))
(message (message "%s"
(if binding (if binding
(format "Welcome to flyspell. Use %s or Mouse-2 to correct words." (format "Welcome to flyspell. Use %s or Mouse-2 to correct words."
(key-description binding)) (key-description binding))
@ -942,7 +942,7 @@ Mostly we check word delimiters."
(sort (car (cdr (cdr poss))) 'string<) (sort (car (cdr (cdr poss))) 'string<)
(car (cdr (cdr poss))))))) (car (cdr (cdr poss)))))))
(if flyspell-issue-message-flag (if flyspell-issue-message-flag
(message (format "mispelling `%s' %S" word replacements))))) (message "mispelling `%s' %S" word replacements))))
;*---------------------------------------------------------------------*/ ;*---------------------------------------------------------------------*/
;* flyspell-word-search-backward ... */ ;* flyspell-word-search-backward ... */
@ -1090,7 +1090,7 @@ Mostly we check word delimiters."
(if flyspell-highlight-flag (if flyspell-highlight-flag
(flyspell-highlight-duplicate-region (flyspell-highlight-duplicate-region
start end poss) start end poss)
(message (format "duplicate `%s'" word))) (message "duplicate `%s'" word))
nil) nil)
(t (t
(setq flyspell-word-cache-result nil) (setq flyspell-word-cache-result nil)
@ -1679,7 +1679,7 @@ misspelled words backwards."
(setq pos (cdr pos))) (setq pos (cdr pos)))
(if (fboundp 'display-message) (if (fboundp 'display-message)
(display-message 'no-log string) (display-message 'no-log string)
(message string)))) (message "%s" string))))
;*---------------------------------------------------------------------*/ ;*---------------------------------------------------------------------*/
;* flyspell-abbrev-table ... */ ;* flyspell-abbrev-table ... */

View file

@ -788,7 +788,7 @@ Otherwise returns the library directory name, if that is defined."
(point)) (point))
", " ", "
ispell-version)) ispell-version))
(message result)) (message "%s" result))
;; return library directory. ;; return library directory.
(if (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t) (if (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t)
(setq result (buffer-substring (match-beginning 1) (match-end 1))))) (setq result (buffer-substring (match-beginning 1) (match-end 1)))))
@ -2387,7 +2387,7 @@ Optional third arg SHIFT is an offset to apply based on previous corrections."
(substring output 2)) ; return root word (substring output 2)) ; return root word
((equal 0 (string-match "[\ra-zA-Z]" output)) ((equal 0 (string-match "[\ra-zA-Z]" output))
(ding) ; error message from ispell! (ding) ; error message from ispell!
(message (concat "Ispell error: " output)) (message "Ispell error: %s" output)
(sit-for 5) (sit-for 5)
nil) nil)
(t ; need to process &, ?, and #'s (t ; need to process &, ?, and #'s

View file

@ -2805,7 +2805,7 @@ At all other locations, this simply calls `ispell-complete-word'."
(assoc completion table)) (assoc completion table))
(insert " ")) (insert " "))
(if (and (equal type :opt) (assoc completion table)) (if (and (equal type :opt) (assoc completion table))
(message (substitute-command-keys (message "%s" (substitute-command-keys
"Press \\[org-complete] again to insert example settings")))) "Press \\[org-complete] again to insert example settings"))))
(t (t
(message "Making completion list...") (message "Making completion list...")
@ -2912,7 +2912,7 @@ to modify it to the correct date."
org-deadline-string " " org-deadline-string " "
(format-time-string (car org-time-stamp-formats) (format-time-string (car org-time-stamp-formats)
(org-read-date nil 'to-time))) (org-read-date nil 'to-time)))
(message (substitute-command-keys (message "%s" (substitute-command-keys
"Use \\[org-timestamp-up-day] and \\[org-timestamp-down-day] to change the date."))) "Use \\[org-timestamp-up-day] and \\[org-timestamp-down-day] to change the date.")))
(defun org-schedule () (defun org-schedule ()
@ -2924,7 +2924,7 @@ to modify it to the correct date."
org-scheduled-string " " org-scheduled-string " "
(format-time-string (car org-time-stamp-formats) (format-time-string (car org-time-stamp-formats)
(org-read-date nil 'to-time))) (org-read-date nil 'to-time)))
(message (substitute-command-keys (message "%s" (substitute-command-keys
"Use \\[org-timestamp-up-day] and \\[org-timestamp-down-day] to change the date."))) "Use \\[org-timestamp-up-day] and \\[org-timestamp-down-day] to change the date.")))
@ -2997,7 +2997,7 @@ ACTION can be set, up, or down."
(setq current org-default-priority)) (setq current org-default-priority))
(cond (cond
((eq action 'set) ((eq action 'set)
(message (format "Priority A-%c, SPC to remove: " org-lowest-priority)) (message "Priority A-%c, SPC to remove: " org-lowest-priority)
(setq new (read-char-exclusive)) (setq new (read-char-exclusive))
(cond ((equal new ?\ ) (setq remove t)) (cond ((equal new ?\ ) (setq remove t))
((or (< (upcase new) ?A) (> (upcase new) org-lowest-priority)) ((or (< (upcase new) ?A) (> (upcase new) org-lowest-priority))
@ -7014,9 +7014,13 @@ If NLAST is a number, only the NLAST fields will actually be summed."
(format "%d:%02d:%02d" h m s)))) (format "%d:%02d:%02d" h m s))))
(kill-new sres) (kill-new sres)
(if (interactive-p) (if (interactive-p)
(message (substitute-command-keys (message "%s"
(format "Sum of %d items: %-20s (\\[yank] will insert result into buffer)" (concat
(length numbers) sres)))) (format "Sum of %d items: %-20s " (length numbers) sres)
(substitute-command-keys
"(\\[yank] will insert result into buffer)")
))
)
sres)))) sres))))
(defun org-table-get-number-for-summing (s) (defun org-table-get-number-for-summing (s)

View file

@ -267,7 +267,7 @@ With argument, actually select the window showing the cross reference."
;; Display crossref info in echo area. ;; Display crossref info in echo area.
(cond (cond
((null docstruct) ((null docstruct)
(message (substitute-command-keys (format reftex-no-info-message "ref")))) (message "%s" (substitute-command-keys (format reftex-no-info-message "ref"))))
((null entry) ((null entry)
(message "ref: unknown label: %s" label)) (message "ref: unknown label: %s" label))
(t (t
@ -300,7 +300,7 @@ With argument, actually select the window showing the cross reference."
(error (error
(if (and files (= (length all-files) (length files))) (if (and files (= (length all-files) (length files)))
(message "cite: no such database entry: %s" key) (message "cite: no such database entry: %s" key)
(message (substitute-command-keys (message "%s" (substitute-command-keys
(format reftex-no-info-message "cite")))) (format reftex-no-info-message "cite"))))
nil))) nil)))
(when entry (when entry

View file

@ -1022,7 +1022,7 @@ When index is restricted, select the previous section as restriction criterion."
(reftex-insert-index (list data) reftex-index-tag t (reftex-insert-index (list data) reftex-index-tag t
"EDITED"))) "EDITED")))
(setq reftex-last-follow-point 1) (setq reftex-last-follow-point 1)
(and message (message message)))) (and message (message "%s" message))))
;; Index map ;; Index map
(define-key reftex-index-map (if (featurep 'xemacs) [(button2)] [(mouse-2)]) (define-key reftex-index-map (if (featurep 'xemacs) [(button2)] [(mouse-2)])
@ -1187,7 +1187,7 @@ You get a chance to edit the entry in the phrases buffer - finish with
(set-marker reftex-index-return-marker (point)) (set-marker reftex-index-return-marker (point))
(reftex-index-selection-or-word arg 'phrase) (reftex-index-selection-or-word arg 'phrase)
(if (eq major-mode 'reftex-index-phrases-mode) (if (eq major-mode 'reftex-index-phrases-mode)
(message (message "%s"
(substitute-command-keys (substitute-command-keys
"Return to LaTeX with \\[reftex-index-phrases-save-and-return]")))) "Return to LaTeX with \\[reftex-index-phrases-save-and-return]"))))
@ -1910,7 +1910,7 @@ both ends."
;; Recursive edit ;; Recursive edit
(save-match-data (save-match-data
(save-excursion (save-excursion
(message (message "%s"
(substitute-command-keys (substitute-command-keys
"Recursive edit. Resume with \\[exit-recursive-edit]")) "Recursive edit. Resume with \\[exit-recursive-edit]"))
(recursive-edit)))) (recursive-edit))))

View file

@ -222,11 +222,11 @@ This function performs no refilling of the changed text."
(if (> (point) (marker-position marker-end)) (if (> (point) (marker-position marker-end))
(setq finish t)) (setq finish t))
(message (message
(format "End of environment not found: %s" end-env)) "End of environment not found: %s" end-env)
(setq finish t)))))) (setq finish t))))))
;; No ignored environments, tildify directly ;; No ignored environments, tildify directly
(tildify-tildify beg end ask))) (tildify-tildify beg end ask)))
(message (format "%d spaces replaced." tildify-count))) (message "%d spaces replaced." tildify-count))
;;;###autoload ;;;###autoload
(defun tildify-buffer () (defun tildify-buffer ()