diff options
| author | Eli Zaretskii | 2001-11-11 14:02:54 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-11-11 14:02:54 +0000 |
| commit | 721c26b86bcf5d0ea5b43315547634ef8079a12d (patch) | |
| tree | bd6c6c0592feb2ca2195a2653c6894d5df367c8e | |
| parent | 91e51f9a78a97e8d1a4d5d293ec675798e93b66e (diff) | |
| download | emacs-721c26b86bcf5d0ea5b43315547634ef8079a12d.tar.gz emacs-721c26b86bcf5d0ea5b43315547634ef8079a12d.zip | |
(menu-bar-edit-menu): Don't use x-selection-exists-p if
it is not fboundp.
(clipboard-yank): Ditto.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a395e7876e..9ca5f0f5e90 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-11-11 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * menu-bar.el (menu-bar-edit-menu): Don't use x-selection-exists-p if | ||
| 4 | it is not fboundp. | ||
| 5 | (clipboard-yank): Ditto. | ||
| 6 | |||
| 1 | 2001-11-11 Colin Walters <walters@verbum.org> | 7 | 2001-11-11 Colin Walters <walters@verbum.org> |
| 2 | 8 | ||
| 3 | The following changes are based on patches from | 9 | The following changes are based on patches from |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 6a9da349a17..5d169aaea2b 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -398,7 +398,11 @@ A large number or nil slows down menu responsiveness." | |||
| 398 | :help "Paste (yank) text cut or copied earlier")) | 398 | :help "Paste (yank) text cut or copied earlier")) |
| 399 | (define-key menu-bar-edit-menu [paste] | 399 | (define-key menu-bar-edit-menu [paste] |
| 400 | '(menu-item "Paste" yank | 400 | '(menu-item "Paste" yank |
| 401 | :enable (and (x-selection-exists-p) (not buffer-read-only)) | 401 | :enable (and |
| 402 | ;; Emacs compiled --without-x doesn't have | ||
| 403 | ;; x-selection-exists-p. | ||
| 404 | (fboundp 'x-selection-exists-p) | ||
| 405 | (x-selection-exists-p) (not buffer-read-only)) | ||
| 402 | :help "Paste (yank) text most recently cut/copied")) | 406 | :help "Paste (yank) text most recently cut/copied")) |
| 403 | (define-key menu-bar-edit-menu [copy] | 407 | (define-key menu-bar-edit-menu [copy] |
| 404 | '(menu-item "Copy" menu-bar-kill-ring-save | 408 | '(menu-item "Copy" menu-bar-kill-ring-save |
| @@ -433,7 +437,8 @@ A large number or nil slows down menu responsiveness." | |||
| 433 | (put 'clipboard-kill-region 'menu-enable 'mark-active) | 437 | (put 'clipboard-kill-region 'menu-enable 'mark-active) |
| 434 | (put 'clipboard-kill-ring-save 'menu-enable 'mark-active) | 438 | (put 'clipboard-kill-ring-save 'menu-enable 'mark-active) |
| 435 | (put 'clipboard-yank 'menu-enable | 439 | (put 'clipboard-yank 'menu-enable |
| 436 | '(or (x-selection-exists-p) (x-selection-exists-p 'CLIPBOARD))) | 440 | '(or (and (fboundp 'x-selection-exists-p) (x-selection-exists-p)) |
| 441 | (x-selection-exists-p 'CLIPBOARD))) | ||
| 437 | 442 | ||
| 438 | (defun clipboard-yank () | 443 | (defun clipboard-yank () |
| 439 | "Insert the clipboard contents, or the last stretch of killed text." | 444 | "Insert the clipboard contents, or the last stretch of killed text." |