changeset 72388:956d4fe07987

* term/x-win.el (menu-bar-edit-menu): Disable paste if buffer is read only.
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 14 Aug 2006 09:00:36 +0000
parents feb2b528a623
children 3200b18b9e9e
files lisp/ChangeLog lisp/term/x-win.el
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Aug 13 19:02:57 2006 +0000
+++ b/lisp/ChangeLog	Mon Aug 14 09:00:36 2006 +0000
@@ -1,3 +1,8 @@
+2006-08-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* term/x-win.el (menu-bar-edit-menu): Disable paste if buffer is
+	read only.
+
 2006-08-13  Romain Francoise  <romain@orebokech.com>
 
 	* cus-theme.el (customize-create-theme)
--- a/lisp/term/x-win.el	Sun Aug 13 19:02:57 2006 +0000
+++ b/lisp/term/x-win.el	Mon Aug 14 09:00:36 2006 +0000
@@ -2513,8 +2513,9 @@
     (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)