* dnd.el: Fix bootstrapping

This commit is contained in:
Jan Djärv 2006-09-07 10:12:51 +00:00
parent eaf6d473fb
commit 1df4d4a85f
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,8 @@
2006-09-07 Jan Dj,Ad(Brv <Janjan.h.d@swipnet.se>
2006-09-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* dnd.el: Fix bootstrapping.
2006-09-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* dnd.el (dnd-protocol-alist): Add what url-handler-mode can handle.
(dnd-open-remote-url): New function.

View file

@ -34,8 +34,6 @@
;;; Customizable variables
(eval-when-compile
(require 'url-handlers))
;;;###autoload
(defcustom dnd-protocol-alist
@ -198,6 +196,7 @@ Turns `url-handler-mode' on if not on before. The file is opened in the
current window, or a new window if `dnd-open-file-other-window' is set.
URI is the url for the file. ACTION is ignored."
(progn
(require 'url-handlers)
(or url-handler-mode (url-handler-mode))
(if dnd-open-file-other-window
(find-file-other-window uri)