+2004-05-03 Jan D. <jhd@gaffa.localdomain>
+
+ * term/x-win.el (x-clipboard-yank): Don't exit on error from
+ x-get-selection.
+
2004-05-03 Jason Rumney <jasonr@gnu.org>
* makefile.nt: Remove.
(defun x-clipboard-yank ()
"Insert the clipboard contents, or the last stretch of killed text."
(interactive)
- (let ((clipboard-text (x-get-selection 'CLIPBOARD))
+ (let ((clipboard-text
+ (condition-case nil
+ (x-get-selection 'CLIPBOARD)
+ (error nil)))
(x-select-enable-clipboard t))
(if (and clipboard-text (> (length clipboard-text) 0))
(kill-new clipboard-text))