From 1d45e02e70b11201279ca3a9cd939c0090fe9b1b Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 20 Sep 2006 04:13:32 +0000 Subject: (clipboard-yank): bomb out in interactive use if buffer is read-only. --- lisp/menu-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/menu-bar.el') diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index cc1351b903..9a89aa4240 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -510,7 +510,7 @@ A large number or nil slows down menu responsiveness." (defun clipboard-yank () "Insert the clipboard contents, or the last stretch of killed text." - (interactive) + (interactive "*") (let ((x-select-enable-clipboard t)) (yank))) -- cgit v1.2.3