[ESS-bugs] transient mark and noweb

Kasper Daniel Hansen khansen at stat.Berkeley.EDU
Sat Jul 21 01:34:51 CEST 2007


Hi All

I was getting really tired of the fact that transient mark mode does  
not play well with noweb-mode, so I did a google search and lo and  
behold a patch had been submitted to ess-bugs a while ago by Markus  
Triska. I don't know how to do a followup to such a report, hence  
this new email. The beginning of that mail is

> Hi ESS-Team,
>
> first of all, thank you so much for ESS, it makes my work much easier.
> Second, I recommend the following ess-write-to-dribble-buffer:
>
> (defun ess-write-to-dribble-buffer (text)
>   "Write TEXT to dribble buffer."
>   (unless (buffer-live-p ess-dribble-buffer)
>     ;; ESS dribble buffer must be re-created.
>     (setq ess-dribble-buffer (get-buffer-create "*ESS*")))
>   (let (deactivate-mark)
>     (with-current-buffer ess-dribble-buffer
>       (goto-char (point-max))
>       (insert text))))
>
> The most important change is that deactivate-mark is set to nil, so
> that the region, if active, isn't deactivated. Without this, in
> transient-mark-mode in GNU Emacs, highlighting of the region is lost
> when moving over chunks, and M-h (= mark-paragraph) on chunks doesn't
> work as expected.

I have applied this patch to ess.el and it works beautifully. I am  
using the latest version of Carbon Emacs under Mac OS X Tiger using a  
Power PC. The versions are
   GNU Emacs 22.1.1 (powerpc-apple-darwin8.9.0, Carbon Version 1.6.0)  
of 2007-06-16 on g5.tokyo.stp.isas.jaxa.jp
   ESS version 5.3.4

The posting (and replies) contain some other bug fixes, which I have  
not tried.

Could this at least go into the next ESS?

Kasper




More information about the ESS-bugs mailing list