[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r114351: * mouse.el (mouse-yank-primary): Reorder to
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] trunk r114351: * mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation. |
Date: |
Wed, 18 Sep 2013 04:21:34 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 114351
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2013-09-17 21:21:29 -0700
message:
* mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/mouse.el mouse.el-20091113204419-o5vbwnq5f7feedwu-123
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-09-18 03:58:26 +0000
+++ b/lisp/ChangeLog 2013-09-18 04:21:29 +0000
@@ -1,5 +1,8 @@
2013-09-18 Glenn Morris <address@hidden>
+ * mouse.el (mouse-yank-primary):
+ Reorder to silence --without-x compilation.
+
* mail/rmailmm.el (rmail-mime-set-bulk-data):
Silence --without-x compilation.
=== modified file 'lisp/mouse.el'
--- a/lisp/mouse.el 2013-03-20 18:13:00 +0000
+++ b/lisp/mouse.el 2013-09-18 04:21:29 +0000
@@ -1147,22 +1147,21 @@
(deactivate-mark)))
(or mouse-yank-at-point (mouse-set-point click))
(let ((primary
- (cond
- ((eq (framep (selected-frame)) 'w32)
- ;; MS-Windows emulates PRIMARY in x-get-selection, but not
- ;; in x-get-selection-value (the latter only accesses the
- ;; clipboard). So try PRIMARY first, in case they selected
- ;; something with the mouse in the current Emacs session.
- (or (x-get-selection 'PRIMARY)
- (x-get-selection-value)))
- ((fboundp 'x-get-selection-value) ; MS-DOS and X.
- ;; On X, x-get-selection-value supports more formats and
- ;; encodings, so use it in preference to x-get-selection.
- (or (x-get-selection-value)
- (x-get-selection 'PRIMARY)))
- ;; FIXME: What about xterm-mouse-mode etc.?
- (t
- (x-get-selection 'PRIMARY)))))
+ (if (fboundp 'x-get-selection-value)
+ (if (eq (framep (selected-frame)) 'w32)
+ ;; MS-Windows emulates PRIMARY in x-get-selection, but not
+ ;; in x-get-selection-value (the latter only accesses the
+ ;; clipboard). So try PRIMARY first, in case they selected
+ ;; something with the mouse in the current Emacs session.
+ (or (x-get-selection 'PRIMARY)
+ (x-get-selection-value))
+ ;; Else MS-DOS or X.
+ ;; On X, x-get-selection-value supports more formats and
+ ;; encodings, so use it in preference to x-get-selection.
+ (or (x-get-selection-value)
+ (x-get-selection 'PRIMARY)))
+ ;; FIXME: What about xterm-mouse-mode etc.?
+ (x-get-selection 'PRIMARY))))
(unless primary
(error "No selection is available"))
(push-mark (point))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r114351: * mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.,
Glenn Morris <=