diff options
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r-- | lisp/menu-bar.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index c2c18320b15..526bccbbac9 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -527,12 +527,12 @@ `(menu-item "Paste" yank :enable (funcall ',(lambda () - (and (or + (and (not buffer-read-only) + (or (gui-backend-selection-exists-p 'CLIPBOARD) (if (featurep 'ns) ; like paste-from-menu (cdr yank-menu) - kill-ring)) - (not buffer-read-only)))) + kill-ring))))) :help "Paste (yank) text most recently cut/copied" :keys ,(lambda () (if cua-mode |