From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Benoit G." Newsgroups: gmane.emacs.help Subject: Re: R scratch buffer Date: Fri, 13 Jul 2012 05:46:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87txxd6jlz.fsf@kuiper.lan.informatimago.com> <87fw8w6p04.fsf@kuiper.lan.informatimago.com> <551a5d0b-7834-40b6-8c3c-6f0d1b7607a9@googlegroups.com> <87bojk6kbd.fsf@kuiper.lan.informatimago.com> <877gu77sf7.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1342183817 32553 80.91.229.3 (13 Jul 2012 12:50:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 12:50:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 14:50:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SpfK1-0001wd-Ci for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2012 14:50:13 +0200 Original-Received: from localhost ([::1]:33715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpfK0-0005hP-IW for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2012 08:50:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!q2g2000vbv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: 194.254.175.14 Original-X-Trace: posting.google.com 1342183577 29349 127.0.0.1 (13 Jul 2012 12:46:17 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 13 Jul 2012 12:46:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q2g2000vbv.googlegroups.com; posting-host=194.254.175.14; posting-account=lsrZwgoAAADDjpU1Q0FkITe-H25pPMZY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.5) Gecko/20100101 Firefox/10.0.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:193453 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85837 Archived-At: On 13 juil, 14:32, "Pascal J. Bourguignon" wrote: > "Benoit G." writes: > > On 13 juil, 12:12, "Pascal J. Bourguignon" > > wrote: > >> "Benoit G." 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? =A0Type C-h f R-mode RET a= nd > >> 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. =A0See `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. =A0See `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__ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://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 !