On Wed, Feb 1, 2012 at 5:17 AM, Vitalie Spinu <spinuvit@gmail.com> wrote:

>
> Solved in SVN and added new function ess-roxy-preview-text bound to C-c
> C-e t.
>
> There is a font-lock issue in Rd preview. If the Rd buffer doesn't have
> an associated file (as roxy generates it), the buffer is not
> fortified. Looks like a font-lock bug to me.
>
>
My recollection is that a buffer unaffiliated with a file always opens in
fundamental mode,
no matter what the buffer's extension is.  Rather than opening a buffer,
can you open a new file.
You don't need to save it to get the behavior, but it does need to be a
file.

Rich




> Vitalie.
>
> Vitalie Spinu <spinuvit@gmail.com> writes:
> > Ben Bolker <bbolker@gmail.com> writes:
> >>
> >>   Any update on this?  I'm on Ubuntu 10.04 with ESS 5.14,
> >> Gnu Emacs 23.1.1.
> >>
> >
> > I am looking into this. The problem is indeed that Rd preview requires a
> > file but roxy doesn't create one. If everyone agrees I will fix the C-c
> > C-p (Rd-preview-help) to create a temp associated file if missing.
> >
> >>  However, I will also point out (if anyone's busy making
> >> improvements) that it would be really great to have a single
> >> command to preview text in a new buffer, rather than having
> >> to C-c C-e C-r and then C-c C-p ...
> >
> > Yes, would be nice, there is already C-c C-e C-t to preview in HTML
> > (which you should use in meanwhile). I will create the text previewer
> > and bind to C-c C-e t if someone doesn't come with a better shortcut.
> >
> > Best,
> > Vitalie.
> >
> >>
> >>   cheers
> >>     Ben Bolker
> >>
> >> ______________________________________________
> >> ESS-help@r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/ess-help
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

