Hi,



I figured out what was wrong.



I’ve added (require ‘ess-site) to the beginning of my emacs file and it
works fine on my new computer now. So I think that means ESS hadn’t loaded
when I referenced ess-mode-map, and as there was nothing associated with
that Symbol I got the “"> Symbol's value as variable is void: ess-mode-map”
Error.



I’m still a little perplexed as to why my old computer didn’t need it
though. So if anyone has any ideas as to why I’d be interested in hearing
them (I know it works now so maybe I should just forget it, but I can’t
help but be a little curious as to exactly what was going on…..)



Thanks for everyone’s help





Chris Howden B.Sc. (Hons) GStat.

Founding Partner

Evidence Based Strategic Development, IP Commercialisation and Innovation,
Data Analysis, Modelling and Training

(mobile) 0410 689 945

(fax) +612 4782 9023

chris@trickysolutions.com.au



Disclaimer: The information in this email and any attachments to it are
confidential and may contain legally privileged information. If you are not
the named or intended recipient, please delete this communication and
contact us immediately. Please note you are not authorised to copy, use or
disclose this communication or any attachments without our consent.
Although this email has been checked by anti-virus software, there is a
risk that email messages may be corrupted or infected by viruses or other
interferences. No responsibility is accepted for such interference. Unless
expressly stated, the views of the writer are not those of the company.
Tricky Solutions always does our best to provide accurate forecasts and
analyses based on the data supplied, however it is possible that some
important predictors were not included in the data sent to us. Information
provided by us should not be solely relied upon when making decisions and
clients should use their own judgement.





*From:* Chris Howden [mailto:chris@trickysolutions.com.au]
*Sent:* Tuesday, 12 June 2012 6:47 PM
*To:* 'Vincent Goulet'; 'ess-help@r-project.org'
*Subject:* Re: [ESS] Emacs initialisation file doesn't work on a new
computer.



Thanks for the response Vincent,



My entire init file is below. It’s a bit of a hack of various peoples init
files including yours, plus some useful stuff I've picked up along the way.
(It’s a hack since I don’t really understand this language, but I’d really
like to try and understand it a bit better. I was wondering if anyone could
point me in the right direction of a good book / online resource / etc. Am
I correct in thinking it’s LISP?)



I keep getting the following error "> Symbol's value as variable is void:
ess-mode-map" for different 'handles'? (not sure if I'm using the correct
terminology there)



When I comment one out EMACS then finds another it doesn't like and I get a
similar error message for it



My entire init file is below and I've put in *red* *bold* each section I
get the above error message. The lines of code I’m having trouble with are:

*(define-key ess-mode-map [delete] 'delete-char)*

*(define-key inferior-ess-mode-map [delete] 'delete-char)*

*(define-key comint-mode-map [C-up]
'comint-previous-matching-input-from-input)*

*(define-key comint-mode-map [C-down]
'comint-next-matching-input-from-input)*

*(define-key ess-mode-map (kbd "C-d") 'comment-region)*

*(define-key ess-mode-map (kbd "C-S-d") 'uncomment-region)*

	[[alternative HTML version deleted]]

