[ESS-bugs] [ESS] Getting SAS to work
Martin Maechler
maechler at stat.math.ethz.ch
Sat Jul 30 18:52:32 CEST 2005
>>>>> "Cameron" == Cameron Hooper <chooper at umich.edu>
>>>>> on Fri, 29 Jul 2005 22:20:14 -0400 writes:
Cameron> On Jul 29, 2005, at 10:10 PM, Richard M. Heiberger
Cameron> wrote:
>> I did mean
>>
>>> M-:(define-key sas-mode-local-map "\C-c\C-r"
>>> 'ess-eval-region)? This did work!
>>>
Cameron> How do I make the change permanent? I put the line
Cameron> (define-key sas-mode-local-map "\C-c\C-r" 'ess-eval-region)
Cameron> in my dot emacs file. Now I get the following error
Cameron> when I start emacs:
Cameron> Wrong type argument: keymapp, nil
yes, since sas-mode-local-map doesn't exist at that time (and
shouldn't).
The correct way to such things is via (add-hook ..)
in our case, most probably
(add-hook
'sas-mode-hook
'(lambda ()
(define-key sas-mode-local-map "\C-c\C-r" 'ess-eval-region)))
---
But then, I think you should probably adopt Rodney Sparapany's advice of
fixing the bogous definition in <ESS>/lisp/essd-sas.el
Regards,
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: +41-44-632-3408 fax: ...-1228 <><
More information about the ESS-bugs
mailing list