]> code.delx.au - gnu-emacs/commitdiff
(mac-system-coding-system): Define and use after
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 30 Mar 2006 02:23:27 +0000 (02:23 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 30 Mar 2006 02:23:27 +0000 (02:23 +0000)
Mac-specific coding systems are ready.

lisp/ChangeLog
lisp/term/mac-win.el

index b5e95c59705265fe700bbad1703e6c07d3e78791..ae6a6ae4c316168214a1b915d1535d4d3c9632ce 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * term/mac-win.el (mac-system-coding-system): Define and use after
+       Mac-specific coding systems are ready.
+
 2006-03-27  Romain Francoise  <romain@orebokech.com>
 
        * net/rcirc.el (rcirc-connect): Add autoload cookie.
index 38795d38461f8fcae49d4f7b5b03467e0ab9a308..68c95d4b319e8623c8cf06c05aab31e3a1606ab5 100644 (file)
@@ -1103,15 +1103,6 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
     )
   "Alist of Mac script codes vs Emacs coding systems.")
 
-(defconst mac-system-coding-system
-  (let ((base (or (cdr (assq mac-system-script-code
-                            mac-script-code-coding-systems))
-                 'mac-roman)))
-    (if (eq system-type 'darwin)
-       base
-      (coding-system-change-eol-conversion base 'mac)))
-  "Coding system derived from the system script code.")
-
 (defun mac-add-charset-info (xlfd-charset mac-text-encoding)
   "Add a character set to display with Mac fonts.
 Create an entry in `mac-charset-info-alist'.
@@ -1153,9 +1144,6 @@ correspoinding TextEncodingBase value."
 \f
 ;;;; Selections
 
-;; Setup to use the Mac clipboard.
-(set-selection-coding-system mac-system-coding-system)
-
 ;;; We keep track of the last text selected here, so we can check the
 ;;; current selection against it, and avoid passing back our own text
 ;;; from x-get-selection-value.
@@ -2024,6 +2012,17 @@ ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman")
 ;; Enable CLIPBOARD copy/paste through menu bar commands.
 (menu-bar-enable-clipboard)
 
+(defconst mac-system-coding-system
+  (let ((base (or (cdr (assq mac-system-script-code
+                            mac-script-code-coding-systems))
+                 'mac-roman)))
+    (if (eq system-type 'darwin)
+       base
+      (coding-system-change-eol-conversion base 'mac)))
+  "Coding system derived from the system script code.")
+
+(set-selection-coding-system mac-system-coding-system)
+
 (defun mac-drag-n-drop (event)
   "Edit the files listed in the drag-n-drop EVENT.
 Switch to a buffer editing the last file dropped."