[ESS-bugs] ess-eval-deactivate-mark doesn't work (patch included)

David Reitter david.reitter at gmail.com
Tue May 5 22:36:58 CEST 2009


I found that ess-eval-deactivate-mark set to nil does not do its job  
in the latest release, i.e. the region was deactivated after a C-c C-r.

The patch below fixes the problem for me.



diff --git a/aquamacs/src/site-lisp/edit-modes/ess-mode/lisp/ess- 
inf.el b/aquamacs/src/site-lisp/edit-modes/ess-mode/lisp/ess-inf.el
index 72d9d7a..19f6796 100644
--- a/aquamacs/src/site-lisp/edit-modes/ess-mode/lisp/ess-inf.el
+++ b/aquamacs/src/site-lisp/edit-modes/ess-mode/lisp/ess-inf.el
@@ -1035,7 +1035,8 @@ default 100 ms and be passed to \\[accept- 
process-output]."
     ;; else: "normal", non-DDE behavior:

     ;; Use this to evaluate some code, but don't wait for output.
-    (let* ((cbuffer (current-buffer))
+    (let* ((deactivate-mark nil)
+	   (cbuffer (current-buffer))
	   (sprocess (get-ess-process ess-current-process-name))
	   (sbuffer (process-buffer sprocess))
	   (text (ess-replace-in-string text-withtabs "\t" " "))



More information about the ESS-bugs mailing list