aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-12-21 06:46:52 +0000
committerKenichi Handa2000-12-21 06:46:52 +0000
commita672b7cd13cd4204d7c75c7439684eba059ea280 (patch)
tree1b2dc72910cadbadacb39016b02a80eb1b539304
parent4d513a5723629b6e922dc1e18801a3069fa5024c (diff)
downloademacs-a672b7cd13cd4204d7c75c7439684eba059ea280.tar.gz
emacs-a672b7cd13cd4204d7c75c7439684eba059ea280.zip
(select-safe-coding-system): Improve help message.
-rw-r--r--lisp/international/mule-cmds.el45
1 files changed, 24 insertions, 21 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 42d4eebe2b3..980019fbc9c 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -603,27 +603,30 @@ and TO is ignored."
603 (with-output-to-temp-buffer "*Warning*" 603 (with-output-to-temp-buffer "*Warning*"
604 (save-excursion 604 (save-excursion
605 (set-buffer standard-output) 605 (set-buffer standard-output)
606 (insert "These default coding systems were tried") 606 (if (not default-coding-system)
607 (if (stringp from) 607 (insert "No default coding systems to try.")
608 (insert " to encode \"" 608 (insert "These default coding systems were tried")
609 (if (> (length from) 10) 609 (if (stringp from)
610 (substring from 0 10) 610 (insert " to encode \""
611 from) 611 (if (> (length from) 10)
612 "...\"")) 612 (substring from 0 10)
613 (insert ":\n") 613 from)
614 (let ((pos (point)) 614 "...\""))
615 (fill-prefix " ")) 615 (insert ":\n")
616 (mapcar (function (lambda (x) (princ " ") (princ (car x)))) 616 (let ((pos (point))
617 default-coding-system) 617 (fill-prefix " "))
618 (insert "\n") 618 (mapcar (function (lambda (x)
619 (fill-region-as-paragraph pos (point))) 619 (princ " ") (princ (car x))))
620 (insert 620 default-coding-system)
621 (if (consp coding-system) 621 (insert "\n")
622 (concat (format "%s safely encodes the target text,\n" 622 (fill-region-as-paragraph pos (point)))
623 (car coding-system)) 623 (insert
624 "but it is not recommended for encoding text in this context,\n" 624 (if (consp coding-system)
625 "e.g., for sending an email message.\n") 625 (concat (format "%s safely encodes the target text,\n"
626 "However, none of them safely encodes the target text.\n")) 626 (car coding-system))
627 "but it is not recommended for encoding text in this context,\n"
628 "e.g., for sending an email message.\n")
629 "However, none of them safely encodes the target text.\n")))
627 (insert (if (consp coding-system) 630 (insert (if (consp coding-system)
628 "\nSelect the above, or " 631 "\nSelect the above, or "
629 "\nSelect ") 632 "\nSelect ")