Vincent Goulet | 18 Dec 17:33 2014

Knitting/Weaving with M-n s in 14.09

Someone using my Emacs distribution reported to me that M-n s doesn't work with the current distribution
(Emacs 24.4, ESS 14.09, polymode and markdown-mode). There's also this unanswered post on SE about the
same issue:

I can also confirm, on OS X at least, that opening a .Rnw file and doing M-n s yields a "... is undefined"
message in the minibuffer.

I use makefiles rather than the keyboard shortcuts myself, so I didn't notice the issue.

Any ideas?

Vincent Goulet, Ph.D.
Directeur général de la formation continue
Université Laval |

ESS-help <at> mailing list
Manuel Morales | 12 Dec 03:22 2014

Multi-line commands and comint-previous-prompt (from the menu Backward Output Group)

I'm using ESS 14.9 installed from Melpa.

If I enter the following multi-line expression:

a <-

I can get back to it using C-c C-p and then re-run it using ENTER. That
gives the following output:

> a <-
a <-
+     c(1:10)

If I now type C-c C-p and try to re-run using ENTER I get only the first

> a <-

Is there a way to change this behavior?

For more background I'm trying to write a function that will allow me to
recall commands from the history that have been entered from either the
R-buffer or a script file and the issue above is causing problems. If
interested see link below for the function:

ESS-help <at> mailing list
(Continue reading)

Georg Otto | 9 Dec 17:39 2014

ess-display-help-on-object: Text is read-only

Dear all,

since upgrading my emacs and ess the help function does not work
anymore. When I try

> help(sort)

no help page is shown and I receive the message:

ess-display-help-on-object: Text is read-only

My emacs version is: 24.3.1
My ess version is: 14.1x [elpa: 20141024.1610]

Any idea what is going on?

Best wishes,



Georg Otto
The Weatherall Institute of Molecular Medicine
Oxford, UK

ESS-help <at> mailing list

(Continue reading)

Murat Tasan | 8 Dec 03:53 2014

how to make close-parens indent identically to close-brace?

Hi all ---

Does anyone know how to force ESS to treat closing parentheses like
closing braces when writing multi-line statements?

An example is:

## existing default indentation
    a = 1:10,
    b = 10:1,

But in such cases, where the open-parens is followed immediately by
whitespace/newline, I'd really like the indentation to be like braces.
I'd settle with just having the closing parens match up to the start
of the call, rather than the open-parens, though:

## treating parens a bit more like braces
  a = 1:10,
  b = 10:1,

Has anyone ever written such a modification for ESS?
(My Elisp is nowhere near sophisticated-enough to know how to specify
this type of rule myself :-/ )


(Continue reading)

Andreas Leha | 4 Dec 15:37 2014

stepping through code with C-c C-c

Hi all,

I quite like the possibility to 'step' through my code using C-c C-c
(ess-eval-region-or-function-or-paragraph-and-step).  Sometimes that
fails due to not recognizing the structure correctly.

Most annoyingly, it does not recognize the *end* of a function.

So, as an example, I am not able to evaluate the following using just a
series of (two) C-c C-c.

--8<---------------cut here---------------start------------->8---
myfunc <- function(a, b)
  c <- a + b

--8<---------------cut here---------------end--------------->8---

Could that be improved on?

( I am aware that I can fix that by adding new lines, but some of
  my code is actually put together using org-mode's noweb syntax
  and that would require me to put newlines between these noweb
  references or start every block with an empty
  line -- just in case.  This looks strange and I will forget to
(Continue reading)

Eshien Chong | 19 Nov 14:59 2014

ESS and Stata problem

Dear list members,

Im new to Emacs and Im trying to use R and Stata through ESS. Ive added (require ess-site) in my .emacs
file, set the environmental path leading to Stata 11 in .bashrc (Im using Mac OS Mavericks). Im able to
start Stata both in Emacs (in *shell*) and from in the command line,  but when I try to send my Stata codes in a
do file using C-c C-c, Statas GUI launches, but the codes are not received by Stata. The buffer hangs
unless I do a C-g. I do not get any errors in the *Messages* buffer, and I get the following message in *ESS* buffer:

Finished setting up ESS-mode.
ess-request-a-process: {beginning}
 ... request-a-process:
  major mode ess-mode; current buff:; ess-language: STA, ess-dialect: stata
 ..start-process-specific: lang:dialect= STA:stata,
(STA): ess-dialect=stata , 
(inf-ess 1): lang=STA, dialect=stata, tmp-dialect=stata,
(inf-ess 1.1): procname=stata temp-dialect=stata, buf-name=*stata* 
(inf-ess 2.0) Method #3 start=/Users/eshienchong/Documents/Projets/ buf=*stata*
(ess-setq-vars-LOCAL): language=STA, dialect=stata, buf=nil, comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 2.1): ess-language=STA, ess-dialect=stata buf=*stata* 
(ess-setq-vars-LOCAL): language=STA, dialect=stata, buf=nil, comint..echoes=nil, comint..sender=inferior-ess-input-sender
(i-ess 1): buf=*stata*, lang=STA, comint..echo=t, comint..sender=inferior-ess-input-sender,
(i-ess end): buf=*stata*, lang=STA, comint..echo=t, comint..sender=inferior-ess-input-sender,
(inf-ess 3.0): prog=stata, start-args=, echoes=t
Making Process...Buf *stata*, :Proc stata, :Prog stata
Start File=nil
(inferior-ess: waiting for process to start (before hook)

Evaluating the code using debug-on-quit yields the following backtrace:

(Continue reading)

Main, Regan | 18 Nov 21:01 2014

Error occurs while loading ~/.emacs


We recently installed Emacs on a linux server and are having difficulty getting it to load our .emacs files. 
When I open emacs in debug mode, I get the following notes in the backtrace buffer:
Debugger entered--Lisp error: (void-function resize-minibuffer-mode)
  eval-buffer(#<buffer  *load*≥ nil "/home/rmain/.emacs" nil t)  ; Reading at buffer position 2274
  load-with-code-conversion("/home/rmain/.emacs" "/home/rmain/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\264^ <at>    \306=\203^Q^ <at> \307^H\310Q\2027^ <at>  \311=\2033^ <at> \312\307\313\314#\203#^ <at> \315\2027^ <at> \312\307\313\316#\203/^ <at> \317\2027^ <at> \315\2027^ <at> \307^H\320Q^Z\321^S\322\n\321\211#\210^K\321=\2$

Can someone help me troubleshoot this issue please?  We are using Emacs 23.1.

Thank you,
-Regan Main


This email message is for the sole use of the intended r...{{dropped:9}}

ESS-help <at> mailing list

Arni Magnusson | 17 Nov 13:10 2014

ADMB support in ESS

Dear ESS developers (core and contributors),

ESS provides Emacs support for a suite of statistical programming 
languages: R, SAS, Julia, etc. I'm wondering whether I can suggest adding 
support for ADMB.

AD Model Builder (ADMB) is a free statistical software environment (a 
layer on top of C++) that handles nonlinear models with a large number of 
parameters and random effects. It has been downloaded several 1000 times 
and cited several 100 times in publications:

As an ADMB core developer, I have written and maintained an `admb-mode' 
for Emacs:

It is a standard major mode and follows the Emacs major mode conventions, 
as outlined in the Lisp reference manual. It provides syntax highlighting, 
IDE compilation and file manipulation, outline code navigation, templates, 
and smaller tools.


Until now, I have distributed admb.el from the website, 
(Continue reading)

Vincent Goulet | 16 Nov 18:27 2014

Emacs 24.4 Modified for Windows

The Windows version of my distribution of GNU Emacs 24.4 is finally out:

The long delay (close to a month) is due to the time it took GNU to release official Windows binaries. ANd then
a few more hours to adapt my build scripts to the new Emacs directory structure...

The distribution still includes ESS 14.09. Otherwise, from the NEWS file:

Version 24.4-modified-1 (16 November 2014)


o GNU Emacs 24.4 released October 20, 2014.

o org 8.2.10


o The icon provided in the program group to edit the site
  configuration file has been deleted. It no longer served any good
  purpose now that ESS is able to locate all (sensibly located)
  versions of R on the system.

o The directory structure in the Emacs installation directory changed
  significantly upstream. Most files are now located in the
  ...\share\emacs directory.

o Due to difficulty building the Org manuals on Windows, the PDF
(Continue reading)

Boylan, Ross | 13 Nov 23:58 2014

ESS default R not the newest (MS Windows)

I just installed the latest R, but when I start emacs (using ess from git yesterday)  and M-x R I get version
3.0.2.  This is on Win 7.  Oddly, M-x R-newest gets me 3.1.2.

I believe this is because 3.0.2, and a bunch of earlier files, are in my personal directory
(C:\Users\rdboylan\Documents\R), while the latest R is in a system directory (C:\Program Files\R).

Is there some way I can convince ESS to use the latest R as default?  Is the current behavior intentional on the
theory that personal installations are preferred?

Ross Boylan
ESS-help <at> mailing list

Ista Zahn | 13 Nov 04:07 2014

Auto-complete args with zero characters

Hi all,

I'd like to get auto-completion of function arguments with zero
characters. The ESS change log for version 12.09 says " R AC sources
are no longer auto-starting at 0 characters but at the default
ac-auto-start characters". Is there a way to re-enable 0 character
auto-complete in ESS?


ESS-help <at> mailing list