unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Benoit G." <benoit.goussen@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: R scratch buffer
Date: Fri, 13 Jul 2012 05:46:17 -0700 (PDT)	[thread overview]
Message-ID: <c78c5694-b6a7-44c3-a9f4-bf1fb7c6bc18@q2g2000vbv.googlegroups.com> (raw)
In-Reply-To: 877gu77sf7.fsf@kuiper.lan.informatimago.com

On 13 juil, 14:32, "Pascal J. Bourguignon" <p...@informatimago.com>
wrote:
> "Benoit G." <benoit.gous...@gmail.com> writes:
> > On 13 juil, 12:12, "Pascal J. Bourguignon" <p...@informatimago.com>
> > wrote:
> >> "Benoit G." <benoit.gous...@gmail.com> writes:
> >> > Thank you again for this fast answer.
>
> >> > The problem is that calling M-x R-mode under emacs usually works.
> >> > But while calling R-mode with .emacs, it don't work anymore. And my R-scratch buffer is still in fundamental mode.
>
> >> > If I find any answer, I will post it.
>
> >> Perhaps M-x R-mode RET asks for parameters?  Type C-h f R-mode RET and
> >> see what's its usage.
>
> > C-h f R-mode returns :
>
> > "
> > R-mode is an interactive compiled Lisp function in `ess-r-d.el'.
> > (R-mode &optional PROC-NAME)
> > Major mode for editing R source.  See `ess-mode' for more help.
> > "
>
> > and ess-mode returns (first lines) :
>
> > "
> > R-mode is an interactive compiled Lisp function in `ess-r-d.el'.
> > (R-mode &optional PROC-NAME)
> > Major mode for editing R source.  See `ess-mode' for more help.
> > "
>
> > I don't think it needed any required argument but I may be wrong...
>
> Indeed, (R-mode) should work.
>
> M-x toggle-debug-on-error RET
> and try again.
>
> --
> __Pascal Bourguignon__                    http://www.informatimago.com/
> A bad day in () is better than a good day in {}.

The problem seems to be solved.
I added (require 'ess-site) in the .emacs file and the code you
published in the second message and the R-scratch buffer is
automatically created in R-mode while opening emacs. I guess this
solve the problem.

Thank you for helping !


      reply	other threads:[~2012-07-13 12:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 15:48 R scratch buffer Benoit G.
2012-07-12 16:15 ` Pascal J. Bourguignon
2012-07-13  7:52   ` Benoit G.
2012-07-13  7:56   ` Benoit G.
2012-07-13  8:31     ` Pascal J. Bourguignon
2012-07-13  9:22       ` Benoit G.
2012-07-13 10:12         ` Pascal J. Bourguignon
2012-07-13 12:18           ` Benoit G.
2012-07-13 12:32             ` Pascal J. Bourguignon
2012-07-13 12:46               ` Benoit G. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c78c5694-b6a7-44c3-a9f4-bf1fb7c6bc18@q2g2000vbv.googlegroups.com \
    --to=benoit.goussen@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).