]> code.delx.au - gnu-emacs/blobdiff - lisp/term/x-win.el
* term/x-win.el (menu-bar-edit-menu): Disable paste if buffer is
[gnu-emacs] / lisp / term / x-win.el
index af45c7c4270777b94717ae9ab96792a4ed8df814..38add1538aaebd7f920064f5bec70b9f159f6e1a 100644 (file)
@@ -2513,8 +2513,9 @@ order until succeed.")
     (yank)))
 
 (define-key menu-bar-edit-menu [paste]
-  (cons "Paste" (cons "Paste text from clipboard or kill ring"
-                     'x-clipboard-yank)))
+  '(menu-item "Paste" x-clipboard-yank
+             :enable (not buffer-read-only)
+             :help "Paste (yank) text most recently cut/copied"))
 
 ;; Initiate drag and drop
 (add-hook 'after-make-frame-functions 'x-dnd-init-frame)