emacs-devel
[Top][All Lists]
Advanced

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

Re: BUG REPORT: "delsel.el"


From: Le Wang
Subject: Re: BUG REPORT: "delsel.el"
Date: Tue, 4 Mar 2003 14:28:03 -0500 (EST)

 --- Richard Stallman <address@hidden> wrote: 

>     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.
> 
> Your patch seems to be a good one. 

Do you mean this patch?

--- 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)
   t)
 
 (defun delete-selection-pre-hook ()

It doesn't fix the problem.  I still get "Mark is not active now" error.  If
we don't touch the mark at all, transient-mark-mode takes care of everything:

*** /usr/local/share/emacs/21.3.50/lisp/delsel.el       Mon Nov 19 01:21:11 
2001
--- /tmp/buffer-content-278329Vo        Sun Mar  2 17:28:13 2003
***************
*** 75,82 ****
    (if killp
        (kill-region (point) (mark))
      (delete-region (point) (mark)))
-   (setq mark-active nil)
-   (run-hooks 'deactivate-mark-hook)
    t)
  
  (defun delete-selection-pre-hook ()
--- 75,80 ----

Diff finished at Sun Mar  2 17:28:13

--
Le

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca




reply via email to

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