[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/select.el [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/select.el [emacs-unicode-2] |
Date: |
Mon, 28 Jun 2004 04:35:46 -0400 |
Index: emacs/lisp/select.el
diff -c emacs/lisp/select.el:1.20.2.1 emacs/lisp/select.el:1.20.2.2
*** emacs/lisp/select.el:1.20.2.1 Fri Apr 16 12:50:09 2004
--- emacs/lisp/select.el Mon Jun 28 07:28:45 2004
***************
*** 176,222 ****
(if coding
(setq coding (coding-system-base coding))
(setq coding 'raw-text))
! ;; Suppress producing escape sequences for compositions.
! (remove-text-properties 0 (length str) '(composition nil) str)
! (cond
! ((eq type 'TEXT)
! (if (not (multibyte-string-p str))
! ;; Don't have to encode unibyte string.
! (setq type 'STRING)
! ;; If STR contains only ASCII, Latin-1, and raw bytes,
! ;; encode STR by iso-latin-1, and return it as type
! ;; `STRING'. Otherwise, encode STR by CODING. In that
! ;; case, the returing type depends on CODING.
! (let ((charsets (find-charset-string str)))
! (setq charsets
! (delq 'ascii
! (delq 'latin-iso8859-1
! (delq 'eight-bit-control
! (delq 'eight-bit-graphic charsets)))))
! (if charsets
! (setq str (encode-coding-string str coding)
! type (if (memq coding '(compound-text
! compound-text-with-extensions))
! 'COMPOUND_TEXT
! 'STRING))
! (setq type 'STRING
! str (encode-coding-string str 'iso-latin-1))))))
!
! ((eq type 'COMPOUND_TEXT)
! (setq str (encode-coding-string str coding)))
!
! ((eq type 'STRING)
! (if (memq coding '(compound-text
! compound-text-with-extensions))
! (setq str (string-make-unibyte str))
! (setq str (encode-coding-string str coding))))
!
! ((eq type 'UTF8_STRING)
! (setq str (encode-coding-string str 'utf-8)))
!
! (t
! (error "Unknow selection type: %S" type))
! ))
(setq next-selection-coding-system nil)
(cons type str))))
--- 176,223 ----
(if coding
(setq coding (coding-system-base coding))
(setq coding 'raw-text))
! (let ((inhibit-read-only t))
! ;; Suppress producing escape sequences for compositions.
! (remove-text-properties 0 (length str) '(composition nil) str)
! (cond
! ((eq type 'TEXT)
! (if (not (multibyte-string-p str))
! ;; Don't have to encode unibyte string.
! (setq type 'STRING)
! ;; If STR contains only ASCII, Latin-1, and raw bytes,
! ;; encode STR by iso-latin-1, and return it as type
! ;; `STRING'. Otherwise, encode STR by CODING. In that
! ;; case, the returing type depends on CODING.
! (let ((charsets (find-charset-string str)))
! (setq charsets
! (delq 'ascii
! (delq 'latin-iso8859-1
! (delq 'eight-bit-control
! (delq 'eight-bit-graphic charsets)))))
! (if charsets
! (setq str (encode-coding-string str coding)
! type (if (memq coding '(compound-text
!
compound-text-with-extensions))
! 'COMPOUND_TEXT
! 'STRING))
! (setq type 'STRING
! str (encode-coding-string str 'iso-latin-1))))))
!
! ((eq type 'COMPOUND_TEXT)
! (setq str (encode-coding-string str coding)))
!
! ((eq type 'STRING)
! (if (memq coding '(compound-text
! compound-text-with-extensions))
! (setq str (string-make-unibyte str))
! (setq str (encode-coding-string str coding))))
!
! ((eq type 'UTF8_STRING)
! (setq str (encode-coding-string str 'utf-8)))
!
! (t
! (error "Unknow selection type: %S" type))
! )))
(setq next-selection-coding-system nil)
(cons type str))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/select.el [emacs-unicode-2],
Miles Bader <=