Just installed Emacs 24 under Windows 7

Getting the following error when trying to cut & paste (kill & yank) within emacs, e.g.

C-k, C-y

to kill a line and copy it somewhere else:

Symbol's function definition is void: x-cut-buffer-or-selection-value

I have commented out the following from my .emacs and restarted emacs but error remains:

;; get copy and paste to work between emacs and other windows
;; (setq x-select-enable-clipboard t)
;; (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

I have no similar problems using emacs 24 with the same .emacs file under linux

I have done an initial googel trawl but all the information I found suggest the bug has been fixed already which isn't much help

Unfortunately, this is making emacs unusable under windows for me

UPDATE

this line doesn't seem to be causing the problem:

;; get copy and paste to work between emacs and other windows
(setq x-select-enable-clipboard t)

however these lines do:

;; this line causes cut/paste errors under windows (emacs 24)
;; (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

;; this alternative fixes windows problems but causes errors under linux (emacs 24)
(setq interprogram-paste-function 'x-selection-value)

I have had a go at making my .emacs platform conditional, e.g.:

;; this line causes cut/paste errors under windows (emacs 24)
(if (eq system-type 'gnu-linux) (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) )
;; (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

;; this alternative causes errors under linux (emacs 24)
(if (eq system-type 'windows-nt) (setq interprogram-paste-function 'x-selection-value) )
;;(setq interprogram-paste-function 'x-selection-value)
<
Edit
Report