Hi everyone,



(apologies if this is a repost, I noticed it didn’t show up on my daily
digest so I have reposted it)



For some reason my uncomment code has just stopped working when I use
ctrl+shft+d. I have recently loaded the newest R and Vincent Goulets
excellent and much appreciated EMACS installation and it has stopped
working since then. I’m working on a 64 bit Windows 7 machine.



I’ve tried Googling, looking back through the archives till Jan and mucking
about with my .emacs file. (I’m no lisp expert so mucking about is the best
description of my efforts)



I’ve got some details below. My co-worker has the same problem since
updating as well.



Any suggestions or directions on where to start looking would be much
appreciated!!!



Thanks





I’m getting the following error when I try to uncomment code

“comment-region-default: Wrong number of arguments: (lambda (beg end) "Like
`comment-region' invoked with a C-u prefix arg." (interactive "r")
(comment-region beg end -1)), 3”





I’ve got the following code in my .emacs file

;; Comment or decomment region

(defun uncomment-region (beg end)

"Like `comment-region' invoked with a C-u prefix arg."

  (interactive "r")

  (comment-region beg end -1))



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

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





This is my complete log

Finding all versions of R on your system...

Loading cua-base...done

(lambda (item1 item2) ...) quoted with ' rather than with #'

(lambda (i) ...) quoted with ' rather than with #'

(lambda (v1 v2) ...) quoted with ' rather than with #' [2 times]

For information about GNU Emacs and the GNU system, type C-h C-a.

R code template v1.1 9-05-12.r has auto save data; consider M-x
recover-this-file

Package pc-select is obsolete!

ESS-style: C++

Type C-h m for help on ESS version 13.05

Cannot read history file e:/data/Egnyte Local
Cloud/Shared/library/software/R/.Rhistory

ess-tracebug mode enabled

using process '*R*'

comment-region-default: Wrong number of arguments: (lambda (beg end) "Like
`comment-region' invoked with a C-u prefix arg." (interactive "r")
(comment-region beg end -1)), 3

user-error: Minibuffer window is not active



Chris Howden

	[[alternative HTML version deleted]]

