title: Symbol's function definition is void: x-cut-buffer-or-selection-value
body: <p>Just installed Emacs 24 under Windows 7</p>
  
  <p>Getting the following error when trying to cut &amp; paste (kill &amp; yank) within emacs, e.g.</p>
  
  <pre><code>C-k, C-y
  </code></pre>
  
  <p>to kill a line and copy it somewhere else:</p>
  
  <pre><code>Symbol's function definition is void: x-cut-buffer-or-selection-value
  </code></pre>
  
  <p>I have commented out the following from my .emacs and restarted emacs but error remains:</p>
  
  <pre><code>;; 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)
  </code></pre>
  
  <p>I have no similar problems using emacs 24 with the same .emacs file under linux</p>
  
  <p>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</p>
  
  <p>Unfortunately, this is making emacs unusable under windows for me</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>this line doesn't seem to be causing the problem:</p>
  
  <pre><code>;; get copy and paste to work between emacs and other windows
  (setq x-select-enable-clipboard t)
  </code></pre>
  
  <p>however these lines do: </p>
  
  <pre><code>;; 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)
  </code></pre>
  
  <p>I have had a go at making my .emacs platform conditional, e.g.:</p>
  
  <pre><code>;; 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)
  </code></pre>
  
  <p>this fixes the problem but this seems like a bit of a kludge...</p>