diff lisp/menu-bar.el @ 73005:69d661c19645

(clipboard-yank): bomb out in interactive use if buffer is read-only.
author David Kastrup <dak@gnu.org>
date Wed, 20 Sep 2006 04:13:32 +0000
parents 3ffa2f66a303
children ee652b7f0ef4 2d56e13fd23d b5c13d1564a9
line wrap: on
line diff
--- a/lisp/menu-bar.el	Tue Sep 19 21:56:07 2006 +0000
+++ b/lisp/menu-bar.el	Wed Sep 20 04:13:32 2006 +0000
@@ -510,7 +510,7 @@
 
 (defun clipboard-yank ()
   "Insert the clipboard contents, or the last stretch of killed text."
-  (interactive)
+  (interactive "*")
   (let ((x-select-enable-clipboard t))
     (yank)))