(delsel-unload-function): Don't use `remprop'; it is not autoloaded,
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Jan 2008 11:13:45 +0000 (11:13 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Jan 2008 11:13:45 +0000 (11:13 +0000)
and we wouldn't want to load CL just to unload delsel.el anyway.
Suggested by Martin Rudalics <rudalics@gmx.at>.

lisp/ChangeLog
lisp/delsel.el

index ca1387f..a80f7ef 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * delsel.el (delsel-unload-function): Don't use `remprop'; it is
+       not autoloaded, and we wouldn't want to load CL just to unload
+       delsel.el anyway.  Suggested by Martin Rudalics <rudalics@gmx.at>.
+
 2008-01-24  Martin Rudalics  <rudalics@gmx.at>
 
        * delsel.el (delete-selection-pre-hook): Avoid clearing out
index 990ca91..3f9a0c7 100644 (file)
@@ -173,7 +173,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
   (dolist (sym '(self-insert-command self-insert-iso yank clipboard-yank
                 insert-register delete-backward-char backward-delete-char-untabify
                 delete-char newline-and-indent newline open-line))
-    (remprop sym 'delete-selection))
+    (put sym 'delete-selection nil))
   ;; continue standard unloading
   nil)