]> code.delx.au - gnu-emacs/blobdiff - lisp/dnd.el
*** empty log message ***
[gnu-emacs] / lisp / dnd.el
index 49576d462c603a5a22c9311fa42f884e68f3de9d..f85984fb7d82689eef441e1d9612505468e780d4 100644 (file)
@@ -1,7 +1,6 @@
 ;;; dnd.el --- drag and drop support.
 
-;; Copyright (C) 2005
-;;  Free Software Foundation, Inc.
+;; Copyright (C) 2005 Free Software Foundation, Inc.
 
 ;; Author: Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
 ;; Maintainer: FSF
@@ -21,8 +20,8 @@
 
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
 
 ;;; Commentary:
 
@@ -36,6 +35,7 @@
 ;;; Customizable variables
 
 
+;;;###autoload
 (defcustom dnd-protocol-alist
   '(
     ("^file:///" . dnd-open-local-file)        ; XDND format.
@@ -55,7 +55,7 @@ If no match is found, the URL is inserted as text by calling `dnd-insert-text'.
 The function shall return the action done (move, copy, link or private)
 if some action was made, or nil if the URL is ignored."
   :version "22.1"
-  :type 'alist
+  :type '(repeat (cons (regexp) (function)))
   :group 'dnd)
 
 
@@ -179,7 +179,7 @@ TEXT is the text as a string, WINDOW is the window where the drop happened."
          (not (windowp window)))
       (progn
        (kill-new text)
-       (message
+       (message "%s"
         (substitute-command-keys
          "The dropped text can be accessed with \\[yank]")))
     (insert text))
@@ -188,4 +188,5 @@ TEXT is the text as a string, WINDOW is the window where the drop happened."
 
 (provide 'dnd)
 
+;; arch-tag: 0472f6a5-2e8f-4304-9e44-1a0877c771b7
 ;;; dnd.el ends here