diff options
| author | Adrian Robert | 2009-09-23 02:35:33 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-09-23 02:35:33 +0000 |
| commit | a3b4b3638579a83b02209377a0c8e33fc5270c46 (patch) | |
| tree | 56f4f31df2beceb02278c092beb064638cc97167 /lisp/term | |
| parent | b3aac06a8c5da55c81e75cfaf4931ad4b2681747 (diff) | |
| download | emacs-a3b4b3638579a83b02209377a0c8e33fc5270c46.tar.gz emacs-a3b4b3638579a83b02209377a0c8e33fc5270c46.zip | |
* term/nswin.el (ns-reg-to-script): New variable.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/ns-win.el | 44 |
1 files changed, 38 insertions, 6 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 3dbf3c063af..410b85d180b 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -966,6 +966,44 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 966 | (format "Creation of the standard fontset failed: %s" err) | 966 | (format "Creation of the standard fontset failed: %s" err) |
| 967 | :error))))) | 967 | :error))))) |
| 968 | 968 | ||
| 969 | ;; This maps font registries (not exposed by NS APIs for font selection) to | ||
| 970 | ;; unicode scripts (which can be mapped to unicode character ranges which are). | ||
| 971 | ;; See ../international/fontset.el | ||
| 972 | (setq ns-reg-to-script | ||
| 973 | '(("iso8859-1" . latin) | ||
| 974 | ("iso8859-2" . latin) | ||
| 975 | ("iso8859-3" . latin) | ||
| 976 | ("iso8859-4" . latin) | ||
| 977 | ("iso8859-5" . cyrillic) | ||
| 978 | ("microsoft-cp1251" . cyrillic) | ||
| 979 | ("koi8-r" . cyrillic) | ||
| 980 | ("iso8859-6" . arabic) | ||
| 981 | ("iso8859-7" . greek) | ||
| 982 | ("iso8859-8" . hebrew) | ||
| 983 | ("iso8859-9" . latin) | ||
| 984 | ("iso8859-10" . latin) | ||
| 985 | ("iso8859-11" . thai) | ||
| 986 | ("tis620" . thai) | ||
| 987 | ("iso8859-13" . latin) | ||
| 988 | ("iso8859-14" . latin) | ||
| 989 | ("iso8859-15" . latin) | ||
| 990 | ("iso8859-16" . latin) | ||
| 991 | ("viscii1.1-1" . latin) | ||
| 992 | ("jisx0201" . kana) | ||
| 993 | ("jisx0208" . han) | ||
| 994 | ("jisx0212" . han) | ||
| 995 | ("jisx0213" . han) | ||
| 996 | ("gb2312.1980" . han) | ||
| 997 | ("gb18030" . han) | ||
| 998 | ("gbk-0" . han) | ||
| 999 | ("big5" . han) | ||
| 1000 | ("cns11643" . han) | ||
| 1001 | ("sisheng_cwnn" . bopomofo) | ||
| 1002 | ("ksc5601.1987" . hangul) | ||
| 1003 | ("ethiopic-unicode" . ethiopic) | ||
| 1004 | ("is13194-devanagari" . indian-is13194) | ||
| 1005 | ("iso10646.indian-1" . devanagari))) | ||
| 1006 | |||
| 969 | 1007 | ||
| 970 | ;;;; Pasteboard support. | 1008 | ;;;; Pasteboard support. |
| 971 | 1009 | ||
| @@ -1037,12 +1075,6 @@ On Nextstep, put TEXT in the pasteboard; PUSH is ignored." | |||
| 1037 | (interactive) | 1075 | (interactive) |
| 1038 | (insert (ns-get-cut-buffer-internal 'SECONDARY))) | 1076 | (insert (ns-get-cut-buffer-internal 'SECONDARY))) |
| 1039 | 1077 | ||
| 1040 | ;; PENDING: not sure what to do here.. for now interprog- are set in | ||
| 1041 | ;; init-fn-keys, and unsure whether these x- settings have an effect. | ||
| 1042 | ;;(setq interprogram-cut-function 'x-select-text | ||
| 1043 | ;; interprogram-paste-function 'x-cut-buffer-or-selection-value) | ||
| 1044 | ;; These only needed if above not working. | ||
| 1045 | |||
| 1046 | (set-face-background 'region "ns_selection_color") | 1078 | (set-face-background 'region "ns_selection_color") |
| 1047 | 1079 | ||
| 1048 | 1080 | ||