Mercurial > emacs
comparison lisp/x-dnd.el @ 111573:e89dd9c3633b
merge trunk
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 Nov 2010 14:19:54 +0900 |
parents | de02b794c330 |
children | 417b1e4d63cd |
comparison
equal
deleted
inserted
replaced
111572:b3f9490f0b7f | 111573:e89dd9c3633b |
---|---|
218 DATA is the moz-url, which is formatted as two strings separated by \\r\\n. | 218 DATA is the moz-url, which is formatted as two strings separated by \\r\\n. |
219 The first string is the URL, the second string is the title of that URL. | 219 The first string is the URL, the second string is the title of that URL. |
220 DATA is encoded in utf-16. Decode the URL and call `x-dnd-handle-uri-list'." | 220 DATA is encoded in utf-16. Decode the URL and call `x-dnd-handle-uri-list'." |
221 ;; Mozilla and applications based on it (Galeon for example) uses | 221 ;; Mozilla and applications based on it (Galeon for example) uses |
222 ;; text/unicode, but it is impossible to tell if it is le or be. Use what | 222 ;; text/unicode, but it is impossible to tell if it is le or be. Use what |
223 ;; the machine Emacs runs on use. This looses if dropping between machines | 223 ;; the machine Emacs runs on use. This loses if dropping between machines |
224 ;; with different endian, but it is the best we can do. | 224 ;; with different endian, but it is the best we can do. |
225 (let* ((coding (if (eq (byteorder) ?B) 'utf-16be 'utf-16le)) | 225 (let* ((coding (if (eq (byteorder) ?B) 'utf-16be 'utf-16le)) |
226 (string (decode-coding-string data coding)) | 226 (string (decode-coding-string data coding)) |
227 (strings (split-string string "[\r\n]" t)) | 227 (strings (split-string string "[\r\n]" t)) |
228 ;; Can one drop more than one moz-url ?? Assume not. | 228 ;; Can one drop more than one moz-url ?? Assume not. |
764 | 764 |
765 ;;; | 765 ;;; |
766 | 766 |
767 (provide 'x-dnd) | 767 (provide 'x-dnd) |
768 | 768 |
769 ;; arch-tag: b621fb7e-50da-4323-850b-5fc71ae64621 | |
770 ;;; x-dnd.el ends here | 769 ;;; x-dnd.el ends here |