[ESS-bugs] font lock in transcript mode with %

Lionel Henry lionel.hry at gmail.com
Wed Feb 1 15:10:42 CET 2017


Hi Richard,

> I see this as incorrect behavior for the ESS Transcript buffer, the .R
> buffer, and the Examples section of the *help[R] ()* files.

It's incorrect behaviour for any buffer that includes output as output
can contain percentages. That's why the iESS buffer does not treat
%op% as pair-delimited, and it should be the same in a .Rout buffer.

On the other hand for R buffers and the examples sections it's correct
behaviour. Treating %op% as pair-delimited allows syntactic actions
over those operators (they are considered as sexp by Emacs), and is
the most efficient and robust way of fontifying %ops%.

Lionel



> On 1 févr. 2017, at 06:08, Richard M. Heiberger <rmh at temple.edu> wrote:
> 
> ess 16.10
> 
> In *R* (iESS [R]: run ElDoc) this line is font-locked entirely black
> 
> 95% family-wise confidence level
> 
> I see this as correct behavior for the iESS buffer .
> 
> The same line in a .Rout file (ESS Transcript [])
> is entirely blue starting with the "%", as are all succeeding lines
> until a closing "%" is observed.
> That is, the opening "%" in interpreted as the beginning of a
> %anything% operator.
> Since there is actually no closing "%", the rest of the file is blue.
> 
> I see this as incorrect behavior for the ESS Transcript buffer, the .R
> buffer, and the
> Examples section of the *help[R] ()* files.
> 
> I would like to see %anything% returned to the previous fontification
> of ordinary
> binary functions similar to + and *.
> 
> This shows up in the printed output of
>   npk.aov <- aov(yield ~ block, npk)
>   confint(multcomp::glht(npk.aov))
>   HH::mmc(npk.aov)
> 
> Rich
> 
> _______________________________________________
> ESS-bugs ESS-bugs at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-bugs
> 
> _______________________________________________
> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core



More information about the ESS-bugs mailing list