From a7610c523cdd0f381e05d10dd2e5abdaf60f8bbf Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Mon, 26 Oct 2009 06:43:36 +0000 Subject: * 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. --- lisp/x-dnd.el | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'lisp/x-dnd.el') diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el index f10506a6a9f..fc593224d24 100644 --- a/lisp/x-dnd.el +++ b/lisp/x-dnd.el @@ -52,19 +52,19 @@ The default value for this variable is `x-dnd-default-test-function'." (defcustom x-dnd-types-alist - '( - ("text/uri-list" . x-dnd-handle-uri-list) - ("text/x-moz-url" . x-dnd-handle-moz-url) - ("_NETSCAPE_URL" . x-dnd-handle-uri-list) - ("FILE_NAME" . x-dnd-handle-file-name) - ("UTF8_STRING" . x-dnd-insert-utf8-text) - ("text/plain;charset=UTF-8" . x-dnd-insert-utf8-text) - ("text/plain;charset=utf-8" . x-dnd-insert-utf8-text) - ("text/unicode" . x-dnd-insert-utf16-text) - ("text/plain" . dnd-insert-text) - ("COMPOUND_TEXT" . x-dnd-insert-ctext) - ("STRING" . dnd-insert-text) - ("TEXT" . dnd-insert-text) + `( + (,(purecopy "text/uri-list") . x-dnd-handle-uri-list) + (,(purecopy "text/x-moz-url") . x-dnd-handle-moz-url) + (,(purecopy "_NETSCAPE_URL") . x-dnd-handle-uri-list) + (,(purecopy "FILE_NAME") . x-dnd-handle-file-name) + (,(purecopy "UTF8_STRING") . x-dnd-insert-utf8-text) + (,(purecopy "text/plain;charset=UTF-8") . x-dnd-insert-utf8-text) + (,(purecopy "text/plain;charset=utf-8") . x-dnd-insert-utf8-text) + (,(purecopy "text/unicode") . x-dnd-insert-utf16-text) + (,(purecopy "text/plain") . dnd-insert-text) + (,(purecopy "COMPOUND_TEXT") . x-dnd-insert-ctext) + (,(purecopy "STRING") . dnd-insert-text) + (,(purecopy "TEXT") . dnd-insert-text) ) "Which function to call to handle a drop of that type. If the type for the drop is not present, or the function is nil, @@ -372,7 +372,7 @@ Currently XDND, Motif and old KDE 1.x protocols are recognized." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; XDND protocol. -(defvar x-dnd-xdnd-to-action +(defconst x-dnd-xdnd-to-action '(("XdndActionPrivate" . private) ("XdndActionCopy" . copy) ("XdndActionMove" . move) -- cgit v1.2.1