[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/term/x-win.el,v
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/term/x-win.el,v |
Date: |
Fri, 01 Feb 2008 16:03:18 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Miles Bader <miles> 08/02/01 16:01:31
Index: lisp/term/x-win.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/x-win.el,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -b -r1.221 -r1.222
--- lisp/term/x-win.el 8 Jan 2008 20:45:45 -0000 1.221
+++ lisp/term/x-win.el 1 Feb 2008 16:01:25 -0000 1.222
@@ -1266,9 +1266,10 @@
;; This is used by DEC's X server.
'((65280 . remove)))))
+;; Latin-1
(let ((i 160))
(while (< i 256)
- (puthash i (make-char 'latin-iso8859-1 i) x-keysym-table)
+ (puthash i i x-keysym-table)
(setq i (1+ i))))
;; Table from Kuhn's proposed additions to the `KEYSYM Encoding'
@@ -1396,70 +1397,70 @@
;; Kana: Fixme: needs conversion to Japanese charset -- seems
;; to require jisx0213, for which the Unicode translation
;; isn't clear.
- (#x47e . ?$,1s>(B)
- (#x4a1 . ?$,2=B(B)
- (#x4a2 . ?\$,2=L(B)
- (#x4a3 . ?\$,2=M(B)
- (#x4a4 . ?$,2=A(B)
- (#x4a5 . ?$,2?{(B)
- (#x4a6 . ?$,2?r(B)
- (#x4a7 . ?$,2?!(B)
- (#x4a8 . ?$,2?#(B)
- (#x4a9 . ?$,2?%(B)
- (#x4aa . ?$,2?'(B)
- (#x4ab . ?$,2?)(B)
- (#x4ac . ?$,2?c(B)
- (#x4ad . ?$,2?e(B)
- (#x4ae . ?$,2?g(B)
- (#x4af . ?$,2?C(B)
- (#x4b0 . ?$,2?|(B)
- (#x4b1 . ?$,2?"(B)
- (#x4b2 . ?$,2?$(B)
- (#x4b3 . ?$,2?&(B)
- (#x4b4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##(B)
+ (#xacd . ?$(O#!(B)
+ (#xace . ?$A!p(B)
(#xacf . ?$,2!o(B)
- (#xad0 . ?$,1rx(B)
- (#xad1 . ?$,1ry(B)
- (#xad2 . ?$,1r|(B)
- (#xad3 . ?$,1r}(B)
+ (#xad0 . ?,F!(B)
+ (#xad1 . ?,F"(B)
+ (#xad2 . ?,Y4(B)
+ (#xad3 . ?,Y!(B)
(#xad4 . ?$,1u^(B)
- (#xad6 . ?$,1s2(B)
- (#xad7 . ?$,1s3(B)
+ (#xad6 . ?$A!d(B)
+ (#xad7 . ?$A!e(B)
(#xad9 . ?$,2%](B)
(#xadb . ?$,2!l(B)
- (#xadc . ?$,2" (B)
- (#xadd . ?$,2!v(B)
- (#xade . ?$,2"/(B)
+ (#xadc . ?$(O#$(B)
+ (#xadd . ?$(O#"(B)
+ (#xade . ?$A!q(B)
(#xadf . ?$,2!n(B)
- (#xae0 . ?$,2"F(B)
+ (#xae0 . ?$(O#?(B)
(#xae1 . ?$,2!k(B)
(#xae2 . ?$,2!m(B)
- (#xae3 . ?$,2!s(B)
- (#xae4 . ?$,2!}(B)
- (#xae5 . ?$,2"f(B)
- (#xae6 . ?$,1s"(B)
+ (#xae3 . ?$A!w(B)
+ (#xae4 . ?$(G!}(B)
+ (#xae5 . ?$A!n(B)
+ (#xae6 . ?$(address@hidden(B)
(#xae7 . ?$,2!j(B)
- (#xae8 . ?$,2!r(B)
- (#xae9 . ?$,2!|(B)
- (#xaea . ?$,2"|(B)
- (#xaeb . ?$,2"~(B)
- (#xaec . ?$,2#c(B)
- (#xaed . ?$,2#f(B)
- (#xaee . ?$,2#e(B)
+ (#xae8 . ?$A!x(B)
+ (#xae9 . ?$(G!~(B)
+ (#xaea . ?$(C"P(B)
+ (#xaeb . ?$(O-~(B)
+ (#xaec . ?$(O&@(B)
+ (#xaed . ?$(O&<(B)
+ (#xaee . ?$(O&>(B)
(#xaf0 . ?$,2%`(B)
- (#xaf1 . ?$,1s (B)
- (#xaf2 . ?$,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$,address@hidden(B)
(#x20a1 . ?$,1tA(B)
@@ -2185,112 +2186,37 @@
(defvar x-select-request-type nil
"*Data type request for X selection.
-The value is nil, one of the following data types, or a list of them:
+The value is one of the following data types, a list of them, or nil:
`COMPOUND_TEXT', `UTF8_STRING', `STRING', `TEXT'
-If the value is nil, try `COMPOUND_TEXT' and `UTF8_STRING', and
-use the more appropriate result. If both fail, try `STRING', and
-then `TEXT'.
-
If the value is one of the above symbols, try only the specified
type.
If the value is a list of them, try each of them in the specified
-order until succeed.")
+order until succeed.
-;; Helper function for x-selection-value. Select UTF8 or CTEXT
-;; whichever is more appropriate. Here, we use this heurisitcs.
-;;
-;; (1) If their lengthes are different, select the longer one. This
-;; is because an X client may just cut off unsupported characters.
-;;
-;; (2) Otherwise, if they are different at Nth character, and that
-;; of UTF8 is a Latin character and that of CTEXT belongs to a CJK
-;; character set, select UTF8. Also select UTF8 if the Nth
-;; character of UTF8 is non-ASCII where as that of CTEXT is ASCII.
-;; This is because an X client may replace unsupported characters
-;; with some ASCII character (typically ` ' or `?') in CTEXT.
-;;
-;; (3) Otherwise, select CTEXT. This is because legacy charsets are
-;; better for the current Emacs, especially when the selection owner
-;; is also Emacs.
-
-(defun x-select-utf8-or-ctext (utf8 ctext)
- (let ((len-utf8 (length utf8))
- (len-ctext (length ctext))
- (selected ctext)
- (i 0)
- char)
- (if (/= len-utf8 len-ctext)
- (if (> len-utf8 len-ctext) utf8 ctext)
- (let ((result (compare-strings utf8 0 len-utf8 ctext 0 len-ctext)))
- (if (eq result t)
- ctext
- (let ((utf8-char (aref utf8 (1- (abs result))))
- (ctext-char (aref ctext (1- (abs result)))))
- (if (or (and (aref (char-category-set utf8-char) ?l)
- (aref (char-category-set ctext-char) ?C))
- (and (>= utf8-char 128)
- (< ctext-char 128)))
- utf8
- ctext)))))))
+The value nil is the same as this list:
+ \(UTF8_STRING COMPOUND_TEXT STRING)
+")
;; Get a selection value of type TYPE by calling x-get-selection with
-;; an appropiate DATA-TYPE argument decidd by `x-select-request-type'.
+;; an appropiate DATA-TYPE argument decided by `x-select-request-type'.
;; The return value is already decoded. If x-get-selection causes an
;; error, this function return nil.
(defun x-selection-value (type)
- (let (text)
- (cond ((null x-select-request-type)
- (let (utf8 ctext utf8-coding)
- ;; We try both UTF8_STRING and COMPOUND_TEXT, and choose
- ;; the more appropriate one. If both fail, try STRING.
-
- ;; At first try UTF8_STRING.
- (setq utf8 (condition-case nil
- (x-get-selection type 'UTF8_STRING)
- (error nil))
- utf8-coding last-coding-system-used)
- (if utf8
- ;; If it is a local selection, or it contains only
- ;; ASCII characers, choose it.
- (if (or (not (get-text-property 0 'foreign-selection utf8))
- (= (length utf8) (string-bytes utf8)))
- (setq text utf8)))
- ;; If not yet decided, try COMPOUND_TEXT.
- (if (not text)
- (if (setq ctext (condition-case nil
- (x-get-selection type 'COMPOUND_TEXT)
- (error nil)))
- ;; If UTF8_STRING was also successful, choose the
- ;; more appropriate one from UTF8 and CTEXT.
- (if utf8
- (setq text (x-select-utf8-or-ctext utf8 ctext))
- ;; Othewise, choose CTEXT.
- (setq text ctext))
- (setq text utf8)))
- ;; If not yet decided, try STRING.
- (or text
- (setq text (condition-case nil
- (x-get-selection type 'STRING)
- (error nil))))
- (if (eq text utf8)
- (setq last-coding-system-used utf8-coding))))
-
- ((consp x-select-request-type)
- (let ((tail x-select-request-type))
- (while (and tail (not text))
+ (let ((request-type (or x-select-request-type
+ '(UTF8_STRING COMPOUND_TEXT STRING)))
+ text)
+ (if (consp request-type)
+ (while (and request-type (not text))
(condition-case nil
- (setq text (x-get-selection type (car tail)))
+ (setq text (x-get-selection type (car request-type)))
(error nil))
- (setq tail (cdr tail)))))
-
- (t
+ (setq request-type (cdr request-type)))
(condition-case nil
- (setq text (x-get-selection type x-select-request-type))
- (error nil))))
-
+ (setq text (x-get-selection type request-type))
+ (error nil)))
(if text
(remove-text-properties 0 (length text) '(foreign-selection nil) text))
text))
@@ -2457,28 +2383,6 @@
;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...).
(create-fontset-from-x-resource)
- ;; Try to create a fontset from a font specification which comes
- ;; from initial-frame-alist, default-frame-alist, or X resource.
- ;; A font specification in command line argument (i.e. -fn XXXX)
- ;; should be already in default-frame-alist as a `font'
- ;; parameter. However, any font specifications in site-start
- ;; library, user's init file (.emacs), and default.el are not
- ;; yet handled here.
-
- (let ((font (or (cdr (assq 'font initial-frame-alist))
- (cdr (assq 'font default-frame-alist))
- (x-get-resource "font" "Font")))
- xlfd-fields resolved-name)
- (if (and font
- (not (query-fontset font))
- (setq resolved-name (x-resolve-font-name font))
- (setq xlfd-fields (x-decompose-font-name font)))
- (if (string= "fontset" (aref xlfd-fields xlfd-regexp-registry-subnum))
- (new-fontset font (x-complement-fontset-spec xlfd-fields nil))
- ;; Create a fontset from FONT. The fontset name is
- ;; generated from FONT.
- (create-fontset-from-ascii-font font resolved-name "startup"))))
-
;; Set scroll bar mode to right if set by X resources. Default is left.
(if (equal (x-get-resource "verticalScrollBars" "ScrollBars") "right")
(customize-set-variable 'scroll-bar-mode 'right))
- [Emacs-diffs] Changes to emacs/lisp/term/x-win.el,v,
Miles Bader <=