[ESS] Re: how to disable auto-fill-mode for editing R / S

Jing Zhou jyzz88 at gmail.com
Thu Apr 7 19:34:04 CEST 2005


Thanks, Martin. I look forward to ESS 5.2.7 release.

-Jing

On Apr 7, 2005 3:23 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote:
> >>>>> "Jing" == Jing Zhou <jyzz88 at gmail.com>
> >>>>>     on Tue, 29 Mar 2005 14:21:08 -0500 writes:
> 
>     Jing> I tried the two methods but they didn't work. Hope that next ESS
>     Jing> version can have a modification on this issue.
> 
> Yes.  Auto-fill-mode will be turned off by default in ESS 5.2.7;
> It was an accident that it's been turned on irrespectively of
> user settings.
> 
> Furthermore the [ESS]  menu's  [Ess Edit] submenu will get an
> entry "Toggle Auto-Fill Mode" for users who might have forgotten
> about M-x auto-fill-mode.
> 
> Also, users who do like auto-fill-mode for editing S / R source,
> would have something like
> 
> (add-hook 'ess-mode-hook
>           '(lambda () (turn-on-auto-fill)))
> 
> in their ~/.emacs (or equivalent emacs startup) file.
> 
> ESS 5.2.7 is planned to be released sometimes next week.
> I hope this issue will then be resolved satisfactorily.
> 
> Martin Maechler, ETH Zurich
> 
>     Jing> -----Original Message-----
>     Jing> Kiermeier, Andreas (PIRSA - SARDI) Kiermeier.Andreas at saugov.sa.gov.au
>     Jing> Tue Mar 29 10:10:08 CEST 2005
> 
>     Andreas> Martin,
> 
>     Andreas> wouldn't the following mode hook work?
> 
>     Andreas> (add-hook 'ess-mode-hook
>     Andreas> (lambda ()
>     Andreas> (auto-fill-mode 0)))
> 
> Maybe this needs to be modified to
> 
>  (add-hook 'ess-mode-hook '(lambda () (auto-fill-mode 0)))
> 
> i.e., an extra  " ' "   before  "(lambda .."
> 
>     Andreas> In addition, I know how turn a mode on using a
>     Andreas> local variable, but could you not use somthing
>     Andreas> similar to turn it off? Maybe the following (of
>     Andreas> course, you should be careful with using eval as a
>     Andreas> local file variable and you require
>     Andreas> enable-local-eval to be true or it probably won't
>     Andreas> work).
> 
>     Andreas> ### Local Variables:
>     Andreas> ### comment-start: "## "
>     Andreas> ### eval: (auto-fill-mode 0)
>     Andreas> ### End:
> 
>     Andreas> I'm not quite sure whether they work as I currently
>     Andreas> can't try it out, but Andreas, you might like to
>     Andreas> experiment with it.
> 
>     Andreas> Cheers,
> 
>     Andreas> Andreas
> 
>




More information about the ESS-help mailing list