aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-03-25 07:40:46 +0000
committerYAMAMOTO Mitsuharu2006-03-25 07:40:46 +0000
commit0f49150ef42e29ee4c1f952b5047826aabd2397b (patch)
tree440dabb7d0e6101464091d633b3af917548f5c45
parent4c08371a0461a350861d645e79e959da41b0437c (diff)
downloademacs-0f49150ef42e29ee4c1f952b5047826aabd2397b.tar.gz
emacs-0f49150ef42e29ee4c1f952b5047826aabd2397b.zip
Adjust Courier font specifications in x-fixed-font-alist.
(mac-select-convert-to-string): Use utf-16be-mac or utf-16le-mac when directly encoding to UTF-16 in native byte order, no BOM.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/term/mac-win.el19
2 files changed, 28 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d268e0aaa12..d4196ab799b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12006-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * frame.el (select-frame-by-name): Call x-focus-frame also when
4 window-system is mac.
5
6 * term/mac-win.el: Adjust Courier font specifications in
7 x-fixed-font-alist.
8 (mac-select-convert-to-string): Use utf-16be-mac or utf-16le-mac
9 when directly encoding to UTF-16 in native byte order, no BOM.
10
12006-03-25 Kim F. Storm <storm@cua.dk> 112006-03-25 Kim F. Storm <storm@cua.dk>
2 12
3 * emulation/cua-base.el (cua-rectangle-mark-key): New defcustom. 13 * emulation/cua-base.el (cua-rectangle-mark-key): New defcustom.
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 4ccb017682c..38795d38461 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1336,7 +1336,8 @@ in `selection-converter-alist', which see."
1336 (setq str (or s 1336 (setq str (or s
1337 (encode-coding-string str 1337 (encode-coding-string str
1338 (if (eq (byteorder) ?B) 1338 (if (eq (byteorder) ?B)
1339 'utf-16be 'utf-16le)))))) 1339 'utf-16be-mac
1340 'utf-16le-mac))))))
1340 ((eq type 'com.apple.traditional-mac-plain-text) 1341 ((eq type 'com.apple.traditional-mac-plain-text)
1341 (let ((encodables (find-coding-systems-string str)) 1342 (let ((encodables (find-coding-systems-string str))
1342 (rest mac-script-code-coding-systems)) 1343 (rest mac-script-code-coding-systems))
@@ -1896,6 +1897,22 @@ It returns a name of the created fontset."
1896 (fontset-add-mac-fonts fontset t) 1897 (fontset-add-mac-fonts fontset t)
1897 fontset)) 1898 fontset))
1898 1899
1900;; Adjust Courier font specifications in x-fixed-font-alist.
1901(let ((courier-fonts (assoc "Courier" x-fixed-font-alist)))
1902 (if courier-fonts
1903 (dolist (label-fonts (cdr courier-fonts))
1904 (setcdr label-fonts
1905 (mapcar
1906 (lambda (font)
1907 (if (string-match "\\`-adobe-courier-\\([^-]*\\)-\\(.\\)-\\(.*\\)-iso8859-1\\'" font)
1908 (replace-match
1909 (if (string= (match-string 2 font) "o")
1910 "-*-courier-\\1-i-\\3-*-*"
1911 "-*-courier-\\1-\\2-\\3-*-*")
1912 t nil font)
1913 font))
1914 (cdr label-fonts))))))
1915
1899;; Setup the default fontset. 1916;; Setup the default fontset.
1900(setup-default-fontset) 1917(setup-default-fontset)
1901(cond ((x-list-fonts "*-iso10646-1") 1918(cond ((x-list-fonts "*-iso10646-1")