diff options
| author | Kenichi Handa | 2000-10-13 00:43:30 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-10-13 00:43:30 +0000 |
| commit | 038f27a72e582d5a8b7f7935bf36ee7ed6ecb8bd (patch) | |
| tree | 467ff06b227ed295d9018e6573579d8fc08483a7 | |
| parent | 11a7f341261669905f64993d5afd0affd5d9e106 (diff) | |
| download | emacs-038f27a72e582d5a8b7f7935bf36ee7ed6ecb8bd.tar.gz emacs-038f27a72e582d5a8b7f7935bf36ee7ed6ecb8bd.zip | |
(select-safe-coding-system): If FROM is string, show it in *Warning*
buffer.
| -rw-r--r-- | lisp/international/mule-cmds.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 9c0cfa5cf42..69f11ea8952 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -598,7 +598,14 @@ and TO is ignored." | |||
| 598 | (with-output-to-temp-buffer "*Warning*" | 598 | (with-output-to-temp-buffer "*Warning*" |
| 599 | (save-excursion | 599 | (save-excursion |
| 600 | (set-buffer standard-output) | 600 | (set-buffer standard-output) |
| 601 | (insert "The following default coding systems were tried:\n") | 601 | (insert "These default coding systems were tried") |
| 602 | (if (stringp from) | ||
| 603 | (insert " to encode \"" | ||
| 604 | (if (> (length from) 10) | ||
| 605 | (substring from 0 10) | ||
| 606 | from) | ||
| 607 | "...\"")) | ||
| 608 | (insert ":\n") | ||
| 602 | (let ((pos (point)) | 609 | (let ((pos (point)) |
| 603 | (fill-prefix " ")) | 610 | (fill-prefix " ")) |
| 604 | (mapcar (function (lambda (x) (princ " ") (princ (car x)))) | 611 | (mapcar (function (lambda (x) (princ " ") (princ (car x)))) |