comparison lisp/x-dnd.el @ 105765:db5e4a5897ec

* textmodes/tex-mode.el (tex-dvi-view-command) (tex-show-queue-command, tex-open-quote): * progmodes/ruby-mode.el (auto-mode-alist) (interpreter-mode-alist): Purecopy strings. * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Purecopy item names. * emacs-lisp/derived.el (define-derived-mode): Purecopy the doc string for the hook, keymap and abbrev table. * emacs-lisp/byte-run.el (make-obsolete): Purecopy the current name. * x-dnd.el (x-dnd-xdnd-to-action): * startup.el (fancy-startup-text, fancy-about-text): Change to defconst from defvar. * ps-print.el (ps-page-dimensions-database): Purecopy initial value. * mouse.el (mouse-buffer-menu-mode-groups, x-fixed-font-alist): Purecopy initialization strings. * mail/sendmail.el (mail-header-separator) (mail-personal-alias-file): * mail/rmail.el (rmail-default-dont-reply-to-names) (rmail-ignored-headers, rmail-retry-ignored-headers) (rmail-highlighted-headers, rmail-secondary-file-directory) (rmail-secondary-file-regexp): * files.el (null-device, file-name-invalid-regexp) (locate-dominating-stop-dir-regexp) (inhibit-first-line-modes-regexps): Purecopy initialization strings. (interpreter-mode-alist): Use mapcar instead of mapc. * buff-menu.el (Buffer-menu-mode-map): Purecopy name. * bindings.el (mode-line-major-mode-keymap): Purecopy name. (completion-ignored-extensions): (debug-ignored-errors): Purecopy strings.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 26 Oct 2009 06:43:36 +0000
parents 68150c643e2e
children 26baacb565b0
comparison
equal deleted inserted replaced
105764:a5db863758a8 105765:db5e4a5897ec
50 :group 'x) 50 :group 'x)
51 51
52 52
53 53
54 (defcustom x-dnd-types-alist 54 (defcustom x-dnd-types-alist
55 '( 55 `(
56 ("text/uri-list" . x-dnd-handle-uri-list) 56 (,(purecopy "text/uri-list") . x-dnd-handle-uri-list)
57 ("text/x-moz-url" . x-dnd-handle-moz-url) 57 (,(purecopy "text/x-moz-url") . x-dnd-handle-moz-url)
58 ("_NETSCAPE_URL" . x-dnd-handle-uri-list) 58 (,(purecopy "_NETSCAPE_URL") . x-dnd-handle-uri-list)
59 ("FILE_NAME" . x-dnd-handle-file-name) 59 (,(purecopy "FILE_NAME") . x-dnd-handle-file-name)
60 ("UTF8_STRING" . x-dnd-insert-utf8-text) 60 (,(purecopy "UTF8_STRING") . x-dnd-insert-utf8-text)
61 ("text/plain;charset=UTF-8" . x-dnd-insert-utf8-text) 61 (,(purecopy "text/plain;charset=UTF-8") . x-dnd-insert-utf8-text)
62 ("text/plain;charset=utf-8" . x-dnd-insert-utf8-text) 62 (,(purecopy "text/plain;charset=utf-8") . x-dnd-insert-utf8-text)
63 ("text/unicode" . x-dnd-insert-utf16-text) 63 (,(purecopy "text/unicode") . x-dnd-insert-utf16-text)
64 ("text/plain" . dnd-insert-text) 64 (,(purecopy "text/plain") . dnd-insert-text)
65 ("COMPOUND_TEXT" . x-dnd-insert-ctext) 65 (,(purecopy "COMPOUND_TEXT") . x-dnd-insert-ctext)
66 ("STRING" . dnd-insert-text) 66 (,(purecopy "STRING") . dnd-insert-text)
67 ("TEXT" . dnd-insert-text) 67 (,(purecopy "TEXT") . dnd-insert-text)
68 ) 68 )
69 "Which function to call to handle a drop of that type. 69 "Which function to call to handle a drop of that type.
70 If the type for the drop is not present, or the function is nil, 70 If the type for the drop is not present, or the function is nil,
71 the drop is rejected. The function takes three arguments, WINDOW, ACTION 71 the drop is rejected. The function takes three arguments, WINDOW, ACTION
72 and DATA. WINDOW is where the drop occurred, ACTION is the action for 72 and DATA. WINDOW is where the drop occurred, ACTION is the action for
370 370
371 371
372 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 372 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
373 ;;; XDND protocol. 373 ;;; XDND protocol.
374 374
375 (defvar x-dnd-xdnd-to-action 375 (defconst x-dnd-xdnd-to-action
376 '(("XdndActionPrivate" . private) 376 '(("XdndActionPrivate" . private)
377 ("XdndActionCopy" . copy) 377 ("XdndActionCopy" . copy)
378 ("XdndActionMove" . move) 378 ("XdndActionMove" . move)
379 ("XdndActionLink" . link) 379 ("XdndActionLink" . link)
380 ("XdndActionAsk" . ask)) 380 ("XdndActionAsk" . ask))