diff options
| author | Deepak Goel | 2007-12-06 00:17:56 +0000 |
|---|---|---|
| committer | Deepak Goel | 2007-12-06 00:17:56 +0000 |
| commit | f6e7ec024870e8ccaaed5bc2e0d92fde7554e16b (patch) | |
| tree | a3477c8e5705009d64f3b58a94e4845639468698 | |
| parent | 8aa8da0595964fc0a0e5980b05afed9050031abe (diff) | |
| download | emacs-f6e7ec024870e8ccaaed5bc2e0d92fde7554e16b.tar.gz emacs-f6e7ec024870e8ccaaed5bc2e0d92fde7554e16b.zip | |
Fix possibly buggy calls to `message'.
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/apropos.el | 2 | ||||
| -rw-r--r-- | lisp/complete.el | 8 | ||||
| -rw-r--r-- | lisp/ediff.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/help.el | 2 | ||||
| -rw-r--r-- | lisp/image-dired.el | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
8 files changed, 30 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d4b5237b479..733fba10ebe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,23 @@ | |||
| 1 | 2007-12-05 D. Goel <deego3@gmail.com> | 1 | 2007-12-05 D. Goel <deego3@gmail.com> |
| 2 | 2 | ||
| 3 | * simple.el (undo): Ditto. | ||
| 4 | |||
| 5 | * image-dired.el (image-dired-display-thumb-properties): Ditto. | ||
| 6 | (image-dired-modify-mark-on-thumb-original-file): Ditto. | ||
| 7 | (image-dired-dired-display-properties): Ditto. | ||
| 8 | |||
| 9 | * help.el (help-window-display-message): Ditto. | ||
| 10 | |||
| 11 | * files.el (hack-local-variables-confirm): Ditto. | ||
| 12 | |||
| 13 | * ediff.el (ediff-version): Ditto. | ||
| 14 | |||
| 15 | * complete.el (pc-chunk-after): Ditto. | ||
| 16 | (PC-temp-minibuffer-message): Ditto. | ||
| 17 | |||
| 18 | * apropos.el (apropos-command): `message' and `error': Ensure that first arg is | ||
| 19 | a format string. | ||
| 20 | |||
| 3 | * emacs-lisp/find-func.el (find-library-name): Prefer files with | 21 | * emacs-lisp/find-func.el (find-library-name): Prefer files with |
| 4 | ".el" suffix over "". | 22 | ".el" suffix over "". |
| 5 | 23 | ||
diff --git a/lisp/apropos.el b/lisp/apropos.el index 9fddf0103fb..f9720e1bcdb 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -449,7 +449,7 @@ while a list of strings is used as a word list." | |||
| 449 | "command or function" "command")) | 449 | "command or function" "command")) |
| 450 | current-prefix-arg)) | 450 | current-prefix-arg)) |
| 451 | (apropos-parse-pattern pattern) | 451 | (apropos-parse-pattern pattern) |
| 452 | (let ((message | 452 | (let ((message "%s" |
| 453 | (let ((standard-output (get-buffer-create "*Apropos*"))) | 453 | (let ((standard-output (get-buffer-create "*Apropos*"))) |
| 454 | (print-help-return-message 'identity)))) | 454 | (print-help-return-message 'identity)))) |
| 455 | (or do-all (setq do-all apropos-do-all)) | 455 | (or do-all (setq do-all apropos-do-all)) |
diff --git a/lisp/complete.el b/lisp/complete.el index e1d0ef07df4..b3a4928dd53 100644 --- a/lisp/complete.el +++ b/lisp/complete.el | |||
| @@ -381,9 +381,9 @@ of `minibuffer-completion-table' and the minibuffer contents.") | |||
| 381 | ;; Returns the sequence of non-delimiter characters that follow regexp in string. | 381 | ;; Returns the sequence of non-delimiter characters that follow regexp in string. |
| 382 | (defun PC-chunk-after (string regexp) | 382 | (defun PC-chunk-after (string regexp) |
| 383 | (if (not (string-match regexp string)) | 383 | (if (not (string-match regexp string)) |
| 384 | (let ((message (format "String %s didn't match regexp %s" string regexp))) | 384 | (let ((message "String %s didn't match regexp %s")) |
| 385 | (message message) | 385 | (message message string regexp) |
| 386 | (error message))) | 386 | (error message string regexp))) |
| 387 | (let ((result (substring string (match-end 0)))) | 387 | (let ((result (substring string (match-end 0)))) |
| 388 | ;; result may contain multiple chunks | 388 | ;; result may contain multiple chunks |
| 389 | (if (string-match PC-delim-regex result) | 389 | (if (string-match PC-delim-regex result) |
| @@ -869,7 +869,7 @@ GOTO-END is non-nil, however, it instead replaces up to END." | |||
| 869 | (defun PC-temp-minibuffer-message (message) | 869 | (defun PC-temp-minibuffer-message (message) |
| 870 | "A Lisp version of `temp_minibuffer_message' from minibuf.c." | 870 | "A Lisp version of `temp_minibuffer_message' from minibuf.c." |
| 871 | (cond (PC-not-minibuffer | 871 | (cond (PC-not-minibuffer |
| 872 | (message message) | 872 | (message "%s" message) |
| 873 | (sit-for 2) | 873 | (sit-for 2) |
| 874 | (message "")) | 874 | (message "")) |
| 875 | ((fboundp 'temp-minibuffer-message) | 875 | ((fboundp 'temp-minibuffer-message) |
diff --git a/lisp/ediff.el b/lisp/ediff.el index 5974f23d64a..a53b93aee5b 100644 --- a/lisp/ediff.el +++ b/lisp/ediff.el | |||
| @@ -1423,7 +1423,7 @@ Uses `vc.el' or `rcs.el' depending on `ediff-version-control-package'." | |||
| 1423 | When called interactively, displays the version." | 1423 | When called interactively, displays the version." |
| 1424 | (interactive) | 1424 | (interactive) |
| 1425 | (if (interactive-p) | 1425 | (if (interactive-p) |
| 1426 | (message (ediff-version)) | 1426 | (message "%s" (ediff-version)) |
| 1427 | (format "Ediff %s of %s" ediff-version ediff-date))) | 1427 | (format "Ediff %s of %s" ediff-version ediff-date))) |
| 1428 | 1428 | ||
| 1429 | ;; info is run first, and will autoload info.el. | 1429 | ;; info is run first, and will autoload info.el. |
diff --git a/lisp/files.el b/lisp/files.el index 274b6b7cd01..8d5fcfda8c2 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2632,7 +2632,7 @@ n -- to ignore the local variables list.") | |||
| 2632 | (if offer-save '(?! ?y ?n ?\s ?\C-g) '(?y ?n ?\s ?\C-g))) | 2632 | (if offer-save '(?! ?y ?n ?\s ?\C-g) '(?y ?n ?\s ?\C-g))) |
| 2633 | done) | 2633 | done) |
| 2634 | (while (not done) | 2634 | (while (not done) |
| 2635 | (message prompt) | 2635 | (message "%s" prompt) |
| 2636 | (setq char (read-event)) | 2636 | (setq char (read-event)) |
| 2637 | (if (numberp char) | 2637 | (if (numberp char) |
| 2638 | (cond ((eq char ?\C-v) | 2638 | (cond ((eq char ?\C-v) |
diff --git a/lisp/help.el b/lisp/help.el index ac6af2d9e50..c6650e1cf21 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -1029,7 +1029,7 @@ scroll the \"other\" window." | |||
| 1029 | ".") | 1029 | ".") |
| 1030 | (other ", \\[scroll-other-window] to scroll help.") | 1030 | (other ", \\[scroll-other-window] to scroll help.") |
| 1031 | (t ", \\[scroll-up] to scroll help.")))) | 1031 | (t ", \\[scroll-up] to scroll help.")))) |
| 1032 | (message | 1032 | (message "%s" |
| 1033 | (substitute-command-keys (concat quit-part scroll-part))))) | 1033 | (substitute-command-keys (concat quit-part scroll-part))))) |
| 1034 | 1034 | ||
| 1035 | (defun help-window-setup-finish (window &optional reuse keep-frame) | 1035 | (defun help-window-setup-finish (window &optional reuse keep-frame) |
diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 82bfbfb20af..cca9686f237 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el | |||
| @@ -1184,7 +1184,7 @@ comment." | |||
| 1184 | ", ")) | 1184 | ", ")) |
| 1185 | (comment (get-text-property (point) 'comment))) | 1185 | (comment (get-text-property (point) 'comment))) |
| 1186 | (if file-name | 1186 | (if file-name |
| 1187 | (message | 1187 | (message "%s" |
| 1188 | (image-dired-format-properties-string | 1188 | (image-dired-format-properties-string |
| 1189 | dired-buf | 1189 | dired-buf |
| 1190 | file-name | 1190 | file-name |
| @@ -1208,7 +1208,7 @@ dired." | |||
| 1208 | (if (not (and dired-buf file-name)) | 1208 | (if (not (and dired-buf file-name)) |
| 1209 | (message "No image, or image with correct properties, at point.") | 1209 | (message "No image, or image with correct properties, at point.") |
| 1210 | (with-current-buffer dired-buf | 1210 | (with-current-buffer dired-buf |
| 1211 | (message file-name) | 1211 | (message "%s" file-name) |
| 1212 | (setq file-name (file-name-nondirectory file-name)) | 1212 | (setq file-name (file-name-nondirectory file-name)) |
| 1213 | (goto-char (point-min)) | 1213 | (goto-char (point-min)) |
| 1214 | (if (search-forward file-name nil t) | 1214 | (if (search-forward file-name nil t) |
| @@ -2239,7 +2239,7 @@ non-nil." | |||
| 2239 | ", ")) | 2239 | ", ")) |
| 2240 | (comment (image-dired-get-comment file))) | 2240 | (comment (image-dired-get-comment file))) |
| 2241 | (if file-name | 2241 | (if file-name |
| 2242 | (message | 2242 | (message "%s" |
| 2243 | (image-dired-format-properties-string | 2243 | (image-dired-format-properties-string |
| 2244 | dired-buf | 2244 | dired-buf |
| 2245 | file-name | 2245 | file-name |
diff --git a/lisp/simple.el b/lisp/simple.el index f49921e60dc..22f29ab0464 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1633,7 +1633,7 @@ as an argument limits undo to changes within the current region." | |||
| 1633 | (delete-auto-save-file-if-necessary recent-save)) | 1633 | (delete-auto-save-file-if-necessary recent-save)) |
| 1634 | ;; Display a message announcing success. | 1634 | ;; Display a message announcing success. |
| 1635 | (if message | 1635 | (if message |
| 1636 | (message message)))) | 1636 | (message "%s" message)))) |
| 1637 | 1637 | ||
| 1638 | (defun buffer-disable-undo (&optional buffer) | 1638 | (defun buffer-disable-undo (&optional buffer) |
| 1639 | "Make BUFFER stop keeping undo information. | 1639 | "Make BUFFER stop keeping undo information. |