aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-03-30 02:23:27 +0000
committerYAMAMOTO Mitsuharu2006-03-30 02:23:27 +0000
commit4da2c33b4c50b675df2bd15e2c4a0beac45243ff (patch)
treed4a709a738fb03e26c49ed31a55f2d607572fe3c
parent3c5f949213fb8473297adbf474379f65d91d0c4d (diff)
downloademacs-4da2c33b4c50b675df2bd15e2c4a0beac45243ff.tar.gz
emacs-4da2c33b4c50b675df2bd15e2c4a0beac45243ff.zip
(mac-system-coding-system): Define and use after
Mac-specific coding systems are ready.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/mac-win.el23
2 files changed, 16 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b5e95c59705..ae6a6ae4c31 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-03-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * term/mac-win.el (mac-system-coding-system): Define and use after
4 Mac-specific coding systems are ready.
5
12006-03-27 Romain Francoise <romain@orebokech.com> 62006-03-27 Romain Francoise <romain@orebokech.com>
2 7
3 * net/rcirc.el (rcirc-connect): Add autoload cookie. 8 * net/rcirc.el (rcirc-connect): Add autoload cookie.
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 38795d38461..68c95d4b319 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1103,15 +1103,6 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1103 ) 1103 )
1104 "Alist of Mac script codes vs Emacs coding systems.") 1104 "Alist of Mac script codes vs Emacs coding systems.")
1105 1105
1106(defconst mac-system-coding-system
1107 (let ((base (or (cdr (assq mac-system-script-code
1108 mac-script-code-coding-systems))
1109 'mac-roman)))
1110 (if (eq system-type 'darwin)
1111 base
1112 (coding-system-change-eol-conversion base 'mac)))
1113 "Coding system derived from the system script code.")
1114
1115(defun mac-add-charset-info (xlfd-charset mac-text-encoding) 1106(defun mac-add-charset-info (xlfd-charset mac-text-encoding)
1116 "Add a character set to display with Mac fonts. 1107 "Add a character set to display with Mac fonts.
1117Create an entry in `mac-charset-info-alist'. 1108Create an entry in `mac-charset-info-alist'.
@@ -1153,9 +1144,6 @@ correspoinding TextEncodingBase value."
1153 1144
1154;;;; Selections 1145;;;; Selections
1155 1146
1156;; Setup to use the Mac clipboard.
1157(set-selection-coding-system mac-system-coding-system)
1158
1159;;; We keep track of the last text selected here, so we can check the 1147;;; We keep track of the last text selected here, so we can check the
1160;;; current selection against it, and avoid passing back our own text 1148;;; current selection against it, and avoid passing back our own text
1161;;; from x-get-selection-value. 1149;;; from x-get-selection-value.
@@ -2024,6 +2012,17 @@ ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman")
2024;; Enable CLIPBOARD copy/paste through menu bar commands. 2012;; Enable CLIPBOARD copy/paste through menu bar commands.
2025(menu-bar-enable-clipboard) 2013(menu-bar-enable-clipboard)
2026 2014
2015(defconst mac-system-coding-system
2016 (let ((base (or (cdr (assq mac-system-script-code
2017 mac-script-code-coding-systems))
2018 'mac-roman)))
2019 (if (eq system-type 'darwin)
2020 base
2021 (coding-system-change-eol-conversion base 'mac)))
2022 "Coding system derived from the system script code.")
2023
2024(set-selection-coding-system mac-system-coding-system)
2025
2027(defun mac-drag-n-drop (event) 2026(defun mac-drag-n-drop (event)
2028 "Edit the files listed in the drag-n-drop EVENT. 2027 "Edit the files listed in the drag-n-drop EVENT.
2029Switch to a buffer editing the last file dropped." 2028Switch to a buffer editing the last file dropped."