[ESS] [AUCTeX] Re: ESS, AUCTeX, S/Rweave (noweb) and mode switching

Brett Presnell presnell at stat.ufl.edu
Sat Mar 8 19:21:09 CET 2008


Michael Hoffman <b3i4old02 at sneakemail.com> writes:

> I recommend this instead as it will not deactivate the mark when
> changing modes:
>
>   (add-hook 'noweb-select-doc-mode-hook
>             '(lambda ()
>                ; avoid infinite loops
>                (unless (boundp 'in-noweb-select-doc-mode-hook)
>                  (let* ((in-noweb-select-doc-mode-hook t)
>                         ; don't deactivate the mark when changing modes
>                         (deactivate-mark))
>                    (TeX-normal-mode t)))))
>
> I do not have any problem with the Noweb menu disappearing.

Thanks for the quick response Michael.  FTR, I tried your code, but I
still have the problems as with my less careful version.  It is
interesting (but frustrating) to hear that you do not have any problem
with the Noweb menu disappearing.




More information about the ESS-help mailing list