[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG REPORT: "delsel.el"

From: Stefan Monnier
Subject: Re: BUG REPORT: "delsel.el"
Date: Sun, 02 Mar 2003 15:33:54 -0500

> Hi,
> I gave the `kill-line' symbol a property of 'kill for 'delete-selection.
> After the region is killed, "delsel.el" attempts to deactivate the region, 
> but 
> of course in transient-mark-mode buffer modification deactivates the region 
> automatically, leading to an error.

What error do you get ?

> I've got a patch (see atached), I don't 
> know if it's too simplistic, though.  I'm no lisp expert.

I don't understand the actual problem (I need the answer to the above
question for that), but a better patch along the lines of what you
sent is the one attached.


--- delsel.el.~1.29.~   Mon Nov 19 01:36:36 2001
+++ delsel.el   Sun Mar  2 15:31:34 2003
@@ -75,8 +75,7 @@
   (if killp
       (kill-region (point) (mark))
     (delete-region (point) (mark)))
-  (setq mark-active nil)
-  (run-hooks 'deactivate-mark-hook)
+  (deactivate-mark)
 (defun delete-selection-pre-hook ()

reply via email to

[Prev in Thread] Current Thread [Next in Thread]