[ESS] ess-tracebug

Vitalie S. spinuvit.list at gmail.com
Fri Dec 10 12:38:20 CET 2010


Rainer M Krug <r.m.krug at gmail.com> writes:

> On 12/10/2010 12:14 AM, Vitalie S. wrote:
>> Rainer M Krug <r.m.krug at gmail.com> writes:
>> 
>>>>
>>>> I will illustrate the ess-tracebug functionality with the test file at
>>>> http://ess-tracebug.googlecode.com/svn/trunk/test.R .  It contains one
> function
>>>> lm_test with an erroneous "," at line 6.
>>>>
>>>> For what follows, I will assume that all the key bindings are as suggested
> on
>>>> the main page http://code.google.com/p/ess-tracebug/ .
>>>
>>> There I hava a problem - I get the following error message:
>>>
>>> Symbol's value as variable is void: inferior-ess-mode
>>>
>>>>
>> 
>> Can you please explain stepwise how you get the error? Do you get it with
> the latest
>> version of the package?
>
> OK
>
> ESS version: 5.12
> Tracebug: downloaded just now
> Emacs: GNU Emacs 23.2.1
>
> Start emacs with
> emacs -Q
>
> execute the following emacs-lisp code:
>
> #+begin_src emacs-lisp
>   (add-to-list 'load-path "~/.emacs.d/site-lisp")
>
>   (add-to-list 'load-path "~/.emacs.d/ess")
>   (load "~/.emacs.d/ess/lisp/ess-site")
>   (require 'ess-site)
>
>   (require 'ess-tracebug)
>   (add-hook 'ess-post-run-hook 'ess-debug t)
>   (add-hook 'ess-post-run-hook 'ess-traceback t)
>
>   (define-key ess-mode-map "\M-]" 'next-error)
>   (define-key ess-mode-map "\M-[" 'previous-error)
>   (define-key inferior-ess-mode "\M-]" 'next-error-no-select)
>   (define-key inferior-ess-mode "\M-[" 'previous-error-no-select)

It should be:

(define-key inferior-ess-mode-map "\M-]" 'next-error-no-select)
(define-key inferior-ess-mode-map "\M-[" 'previous-error-no-select)

Vitalie.

>
>   (define-key ess-mode-map [(control ?x)(?`)] 'ess-show-R-traceback)
>   (define-key inferior-ess-mode-map [(control ?x)(?`)]
> 'ess-show-R-traceback)
>
>   (define-key compilation-minor-mode-map [(?n)] 'next-error-no-select)
>   (define-key compilation-minor-mode-map [(?p)] 'previous-error-no-select)
> #+end_src
>
> and I get the error
>
> Cheers,
>
> Rainer
>> 
>>>
>>> I must say, very handy. I will definitely try it out.
>>>
>>> Thanks a lot for this detailed description and ilustration of tracebug's
>>> features - I would actually suggest to add it as a tutorial to the
>>> tracebug website.
>> 
>> Thanks for the tip. It's done.
>> 
>> Find the tutorial of basic features here:
>> http://code.google.com/p/ess-tracebug/wiki/tutorial_basic_features> 
>> Vitalie



More information about the ESS-help mailing list