[ESS] ess-tracebug
Rainer M Krug
r.m.krug at gmail.com
Fri Dec 10 12:43:16 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/10/2010 12:38 PM, Vitalie S. wrote:
> 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)
Thanks - that explains.
Working now.
Thanks,
Rainer
>
> 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
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer at krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0CElMACgkQoYgNqgF2egr2kgCdG4rFsJckU05WKH/gc1Ep3B7Y
CtgAnAt33EASZK9MQta4IFfR9w25yGif
=sQf4
-----END PGP SIGNATURE-----
More information about the ESS-help
mailing list