[ESS-bugs] ess-mode 12.09 [rev. 5167 (2012-09-24)]; highlighting logical variables

Stefano Conti s.conti at gmx.co.uk
Mon Oct 1 23:02:50 CEST 2012


I'm now writing from my home laptop, where I've got the most up-to-date 
version of Emacs (i.e. 24.2.1) and ESS (i.e. 12.09): I observe no 
problem with font locking; everything looks to behave as expected.

I didn't pay attention myself to the fact that the Emacs version I got 
at work -- where I normally write from during work-days -- is somewhat 
outdated (version 22.1.7).  Do you reckon this could this be at the root 
of the problem?

--
Stefano

On 01/10/12 17:30, Vitalie Spinu wrote:
>    >> "Stefano Conti" <s.conti at gmx.co.uk>
>    >> on Mon, 01 Oct 2012 17:34:04 +0200 wrote:
>
>    SC> Sorry, your 2nd question slipped through the craks.  Meanwhile I've been playing
>    SC> a little myself with the ESS --> Font-Lock sub-menu: switching neither
>    SC> "ess-fl-keyword:constants" nor "ess-R-fl-keyword:F&T" switches appears have any
>    SC> influence.
>
> This should not be. Does switching of other keywords has any effect
> on the highlighting in your buffer? Are you sure you are loading the
> correct ESS and not some old version of it?
>
> So let's try to figure out what is going on. Please paste here the
> values of the following variables from your ESS buffer (C-h v):
>
>    font-lock-keywords
>    font-lock-defaults
>    ess-font-lock-keywords
>    ess-font-lock-defaults
>
>    SC> From your comment I also see that you don't seem to have the same
>    SC> issue...
>
> Yes, you are the first to have a font-lock problems in 12.09.
>
>      Vitalie
>
>    >> ----- Original Message -----
>    >> From: Vitalie Spinu
>    >> Sent: 10/01/12 04:17 PM
>    >> To: Stefano Conti
>    >> Subject: Re: [ESS-bugs] ess-mode 12.09 [rev. 5167 (2012-09-24)]; highlighting logical variables
>    >>
>    >> >> "Stefano Conti" <s.conti at gmx.co.uk>
>    >>  >> on Mon, 01 Oct 2012 17:03:33 +0200 wrote:
>    >>
>    >>  > There are text properties here:
>    >>  >  fontified            t
>    >>  > == END ==
>    >>
>    >> This is not good. How about my other question? Can you set/unset
>    >> ess-fl-keyword:constants from ESS/Font-Lock sub-menu and see if it makes
>    >> any difference? How about other keywords, does setting/insetting them
>    >> lead to change in fortification?
>    >>
>    >> It's very strange that you have problems with TRUE/FALSE but no any
>    >> other keywords.
>    >>
>    >>  Vitalie
>    >>
>    >>
>    >>  > The only font setting command I have in my .emacs file is
>    >>
>    >>  > (setq font-lock-maximum-decoration t)
>    >>
>    >>  > which shouldn't interfere with the font locking issue I've notice; that is unless I'm mistaken.
>    >>
>    >>  > Hope the above helps; thank you again, cheers,
>    >>
>    >>  > --
>    >>  > Stefano
>    >>
>    >>  >> ----- Original Message -----
>    >>  >> From: Vitalie Spinu
>    >>  >> Sent: 10/01/12 03:51 PM
>    >>  >> To: Stefano Conti
>    >>  >> Subject: Re: [ESS-bugs] ess-mode 12.09 [rev. 5167 (2012-09-24)]; highlighting logical variables
>    >>  >>
>    >>  >> >> "Stefano Conti" <s.conti at gmx.co.uk>
>    >>  >>  >> on Mon, 01 Oct 2012 16:25:34 +0200 wrote:
>    >>  >>
>    >>  >> [...]
>    >>  >>
>    >>  >>  SC> I have just realised that the latest ESS also offers a flaky
>    >>  >>  SC> handling of syntax highlighting.
>    >>  >>
>    >>  >> What do you mean by "flaky"? Is there any other problem except
>    >>  >> TRUE/FALSE which you have reported?
>    >>  >>
>    >>  >>  SC> Specifically, logical statements (TRUE / FALSE) seem to no longer
>    >>  >>  SC> be highlighted in green (at least on both my work and home
>    >>  >>  SC> systems) font.
>    >>  >>
>    >>  >> It is not highlighted in green, but is it highlighted at all? Place the
>    >>  >> point on TRUE and do "C-u C-x =". Do you see:
>    >>  >>
>    >>  >>  There are text properties here:
>    >>  >>  face font-lock-type-face
>    >>  >>  fontified t
>    >>  >> ?
>    >>  >>
>    >>  >> If not look in ESS/Font-Lock menu and see if constants are selected.
>    >>  >>
>    >>  >> Also check your .emacs if you interfere with font-lock yourself. If so,
>    >>  >> remove that. ESS font-lock internals have been changed.
>    >>  >>
>    >>  >>  Vitalie
>



More information about the ESS-bugs mailing list