diff options
| author | Jan Djärv | 2013-10-01 20:22:48 +0200 |
|---|---|---|
| committer | Jan Djärv | 2013-10-01 20:22:48 +0200 |
| commit | 0daa080405affe9ab085c4375227fa5ca1ded151 (patch) | |
| tree | 3c243584d1249ef0a7239db3efcd02247db365c3 | |
| parent | abd1ae34a6e01624ba31c7f04d7602237d73a0e3 (diff) | |
| download | emacs-0daa080405affe9ab085c4375227fa5ca1ded151.tar.gz emacs-0daa080405affe9ab085c4375227fa5ca1ded151.zip | |
* lisp/term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
and default-process-coding-system for darwin only.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 13 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8707c02f540..49cb49dd893 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system | ||
| 4 | and default-process-coding-system for darwin only. | ||
| 5 | |||
| 1 | 2013-10-01 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-10-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/package.el (package-desc): Simplify (bug#15495). | 8 | * emacs-lisp/package.el (package-desc): Simplify (bug#15495). |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 91849dbbdcf..bc9cab375bf 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -912,12 +912,13 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 912 | ;; FIXME: This will surely lead to "MODIFIED OUTSIDE CUSTOM" warnings. | 912 | ;; FIXME: This will surely lead to "MODIFIED OUTSIDE CUSTOM" warnings. |
| 913 | (menu-bar-mode (if (get-lisp-resource nil "Menus") 1 -1)) | 913 | (menu-bar-mode (if (get-lisp-resource nil "Menus") 1 -1)) |
| 914 | 914 | ||
| 915 | ;; For NS nothing except UTF-8 makes sense. | 915 | ;; For Darwin nothing except UTF-8 makes sense. |
| 916 | (add-hook 'before-init-hook | 916 | (when (eq system-type 'darwin) |
| 917 | #'(lambda () | 917 | (add-hook 'before-init-hook |
| 918 | (setq locale-coding-system 'utf-8-unix) | 918 | #'(lambda () |
| 919 | (setq default-process-coding-system | 919 | (setq locale-coding-system 'utf-8-unix) |
| 920 | '(utf-8-unix . utf-8-unix)))) | 920 | (setq default-process-coding-system |
| 921 | '(utf-8-unix . utf-8-unix))))) | ||
| 921 | 922 | ||
| 922 | ;; OS X Lion introduces PressAndHold, which is unsupported by this port. | 923 | ;; OS X Lion introduces PressAndHold, which is unsupported by this port. |
| 923 | ;; See this thread for more details: | 924 | ;; See this thread for more details: |