]> git.eshelyaron.com Git - emacs.git/commitdiff
* dnd.el: Fix bootstrapping
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 7 Sep 2006 10:12:51 +0000 (10:12 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 7 Sep 2006 10:12:51 +0000 (10:12 +0000)
lisp/ChangeLog
lisp/dnd.el

index 2dcffc46a3ad541141ca151a22f78b07085f4f1d..7cd30f5be2e7b73e22a4f16001a5a6f157595644 100644 (file)
@@ -1,4 +1,8 @@
-2006-09-07  Jan Dj\e,Ad\e(Brv  <Janjan.h.d@swipnet.se>
+2006-09-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * dnd.el: Fix bootstrapping.
+
+2006-09-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * dnd.el (dnd-protocol-alist): Add what url-handler-mode can handle.
        (dnd-open-remote-url): New function.
index 18a98957032ddc3887ed343beaeb692b3dc89a34..f1e1c6b1b9e2efce7dc9955453a469d6cd919c19 100644 (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)