diff options
| author | Kenichi Handa | 2004-01-29 04:58:35 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-01-29 04:58:35 +0000 |
| commit | 2e454bb6e0e85d432cb3439dd27c5e80b4d33241 (patch) | |
| tree | 560e4b6d0a1c662fbb2c9422f31967f161563fb7 | |
| parent | 1b7c19df9a03c77993eca0d6c5938eefe8933234 (diff) | |
| download | emacs-2e454bb6e0e85d432cb3439dd27c5e80b4d33241.tar.gz emacs-2e454bb6e0e85d432cb3439dd27c5e80b4d33241.zip | |
(x-selection-value): Optimize for ASCII only case.
| -rw-r--r-- | lisp/term/x-win.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 12991037a60..735d21c8e9e 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -2199,8 +2199,10 @@ order until succeed.") | |||
| 2199 | (error nil)) | 2199 | (error nil)) |
| 2200 | utf8-coding last-coding-system-used) | 2200 | utf8-coding last-coding-system-used) |
| 2201 | (if utf8 | 2201 | (if utf8 |
| 2202 | ;; If it is a locale selection, choose it. | 2202 | ;; If it is a local selection, or it contains only |
| 2203 | (or (get-text-property 0 'foreign-selection utf8) | 2203 | ;; ASCII characers, choose it. |
| 2204 | (if (or (not (get-text-property 0 'foreign-selection utf8)) | ||
| 2205 | (= (length utf8) (string-bytes utf8))) | ||
| 2204 | (setq text utf8))) | 2206 | (setq text utf8))) |
| 2205 | ;; If not yet decided, try COMPOUND_TEXT. | 2207 | ;; If not yet decided, try COMPOUND_TEXT. |
| 2206 | (if (not text) | 2208 | (if (not text) |