aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2013-08-19 05:10:33 +0000
committerKatsumi Yamaoka2013-08-19 05:10:33 +0000
commitdab3a8d5fe0da1fafc0143e2c780e3c6e020b705 (patch)
tree6ca125fefdb2a0e561f19e14687afce7c72bc1b3
parentdeb31e75f8042f6f15d78e6695e849991d2b9e05 (diff)
downloademacs-dab3a8d5fe0da1fafc0143e2c780e3c6e020b705.tar.gz
emacs-dab3a8d5fe0da1fafc0143e2c780e3c6e020b705.zip
Gnus: Exclude iso-2022-jp-2 and shift_jis from the default value set to mm-coding-system-priorities for Japanese users
-rw-r--r--doc/misc/ChangeLog6
-rw-r--r--doc/misc/emacs-mime.texi20
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mm-util.el10
4 files changed, 26 insertions, 15 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index d612c37fcb2..554580c769a 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,9 @@
12013-08-19 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * emacs-mime.texi (Encoding Customization): Exclude iso-2022-jp-2 and
4 shift_jis from the default value set to mm-coding-system-priorities for
5 Japanese users.
6
12013-08-13 Glenn Morris <rgm@gnu.org> 72013-08-13 Glenn Morris <rgm@gnu.org>
2 8
3 * reftex.texi (LaTeX xr Package, Options - Table of Contents) 9 * reftex.texi (LaTeX xr Package, Options - Table of Contents)
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi
index cbb78af9d59..2c0e929e532 100644
--- a/doc/misc/emacs-mime.texi
+++ b/doc/misc/emacs-mime.texi
@@ -871,15 +871,15 @@ by using the @code{encoding} @acronym{MML} tag (@pxref{MML Definition}).
871@vindex mm-coding-system-priorities 871@vindex mm-coding-system-priorities
872Prioritize coding systems to use for outgoing messages. The default 872Prioritize coding systems to use for outgoing messages. The default
873is @code{nil}, which means to use the defaults in Emacs, but is 873is @code{nil}, which means to use the defaults in Emacs, but is
874@code{(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)} when 874@code{(iso-8859-1 iso-2022-jp utf-8)} when running Emacs in the Japanese
875running Emacs in the Japanese language environment. It is a list of 875language environment. It is a list of coding system symbols (aliases of
876coding system symbols (aliases of coding systems are also allowed, use 876coding systems are also allowed, use @kbd{M-x describe-coding-system} to
877@kbd{M-x describe-coding-system} to make sure you are specifying correct 877make sure you are specifying correct coding system names). For example,
878coding system names). For example, if you have configured Emacs 878if you have configured Emacs to prefer UTF-8, but wish that outgoing
879to prefer UTF-8, but wish that outgoing messages should be sent in 879messages should be sent in ISO-8859-1 if possible, you can set this
880ISO-8859-1 if possible, you can set this variable to 880variable to @code{(iso-8859-1)}. You can override this setting on a
881@code{(iso-8859-1)}. You can override this setting on a per-message 881per-message basis by using the @code{charset} @acronym{MML} tag
882basis by using the @code{charset} @acronym{MML} tag (@pxref{MML Definition}). 882(@pxref{MML Definition}).
883 883
884As different hierarchies prefer different charsets, you may want to set 884As different hierarchies prefer different charsets, you may want to set
885@code{mm-coding-system-priorities} according to the hierarchy in Gnus. 885@code{mm-coding-system-priorities} according to the hierarchy in Gnus.
@@ -904,7 +904,7 @@ Here's an example:
904 (mm-coding-system-priorities '(iso-8859-15 iso-8859-1 utf-8))) 904 (mm-coding-system-priorities '(iso-8859-15 iso-8859-1 utf-8)))
905 ("^fj\\." ;; Japanese 905 ("^fj\\." ;; Japanese
906 (mm-coding-system-priorities 906 (mm-coding-system-priorities
907 '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8))) 907 '(iso-8859-1 iso-2022-jp utf-8)))
908 ("^ru\\." ;; Cyrillic 908 ("^ru\\." ;; Cyrillic
909 (mm-coding-system-priorities 909 (mm-coding-system-priorities
910 '(koi8-r iso-8859-5 iso-8859-1 utf-8)))) 910 '(koi8-r iso-8859-5 iso-8859-1 utf-8))))
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index bc56d942191..950b73666e2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12013-08-19 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-util.el (mm-coding-system-priorities): Exclude iso-2022-jp-2 and
4 shift_jis from the default value set for Japanese users.
5
12013-08-13 Glenn Morris <rgm@gnu.org> 62013-08-13 Glenn Morris <rgm@gnu.org>
2 7
3 * gnus-icalendar.el (gnus-icalendar-org-capture-file): Fix type. 8 * gnus-icalendar.el (gnus-icalendar-org-capture-file): Fix type.
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 209c2949ea9..9c2f0df5f59 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -845,17 +845,17 @@ Valid elements include:
845 (not lang) nil) 845 (not lang) nil)
846 ;; In XEmacs 21.5 it may be the one like "Japanese (UTF-8)". 846 ;; In XEmacs 21.5 it may be the one like "Japanese (UTF-8)".
847 ((string-match "\\`Japanese" lang) 847 ((string-match "\\`Japanese" lang)
848 ;; Japanese users prefer iso-2022-jp to euc-japan or 848 ;; Japanese users prefer iso-2022-jp to others usually used
849 ;; shift_jis, however iso-8859-1 should be used when 849 ;; for `buffer-file-coding-system', however iso-8859-1 should
850 ;; there are only ASCII text and Latin-1 characters. 850 ;; be used when there are only ASCII and Latin-1 characters.
851 '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)))) 851 '(iso-8859-1 iso-2022-jp utf-8))))
852 "Preferred coding systems for encoding outgoing messages. 852 "Preferred coding systems for encoding outgoing messages.
853 853
854More than one suitable coding system may be found for some text. 854More than one suitable coding system may be found for some text.
855By default, the coding system with the highest priority is used 855By default, the coding system with the highest priority is used
856to encode outgoing messages (see `sort-coding-systems'). If this 856to encode outgoing messages (see `sort-coding-systems'). If this
857variable is set, it overrides the default priority." 857variable is set, it overrides the default priority."
858 :version "21.2" 858 :version "24.4"
859 :type '(repeat (symbol :tag "Coding system")) 859 :type '(repeat (symbol :tag "Coding system"))
860 :group 'mime) 860 :group 'mime)
861 861