diff options
| author | Glenn Morris | 2013-09-17 21:21:29 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-17 21:21:29 -0700 |
| commit | 5f30349b1ec61b687a2e238368168bb01bfcfe68 (patch) | |
| tree | 4751e7188a079e2ddd01dec5b3f51218f33a595e | |
| parent | 4bd4c0afe0d700edbf8baa68ffb371b6c900b576 (diff) | |
| download | emacs-5f30349b1ec61b687a2e238368168bb01bfcfe68.tar.gz emacs-5f30349b1ec61b687a2e238368168bb01bfcfe68.zip | |
* mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mouse.el | 31 |
2 files changed, 18 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b1bd0006438..af062359d4e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> | 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mouse.el (mouse-yank-primary): | ||
| 4 | Reorder to silence --without-x compilation. | ||
| 5 | |||
| 3 | * mail/rmailmm.el (rmail-mime-set-bulk-data): | 6 | * mail/rmailmm.el (rmail-mime-set-bulk-data): |
| 4 | Silence --without-x compilation. | 7 | Silence --without-x compilation. |
| 5 | 8 | ||
diff --git a/lisp/mouse.el b/lisp/mouse.el index 0367cad87b8..219287c4767 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1147,22 +1147,21 @@ regardless of where you click." | |||
| 1147 | (deactivate-mark))) | 1147 | (deactivate-mark))) |
| 1148 | (or mouse-yank-at-point (mouse-set-point click)) | 1148 | (or mouse-yank-at-point (mouse-set-point click)) |
| 1149 | (let ((primary | 1149 | (let ((primary |
| 1150 | (cond | 1150 | (if (fboundp 'x-get-selection-value) |
| 1151 | ((eq (framep (selected-frame)) 'w32) | 1151 | (if (eq (framep (selected-frame)) 'w32) |
| 1152 | ;; MS-Windows emulates PRIMARY in x-get-selection, but not | 1152 | ;; MS-Windows emulates PRIMARY in x-get-selection, but not |
| 1153 | ;; in x-get-selection-value (the latter only accesses the | 1153 | ;; in x-get-selection-value (the latter only accesses the |
| 1154 | ;; clipboard). So try PRIMARY first, in case they selected | 1154 | ;; clipboard). So try PRIMARY first, in case they selected |
| 1155 | ;; something with the mouse in the current Emacs session. | 1155 | ;; something with the mouse in the current Emacs session. |
| 1156 | (or (x-get-selection 'PRIMARY) | 1156 | (or (x-get-selection 'PRIMARY) |
| 1157 | (x-get-selection-value))) | 1157 | (x-get-selection-value)) |
| 1158 | ((fboundp 'x-get-selection-value) ; MS-DOS and X. | 1158 | ;; Else MS-DOS or X. |
| 1159 | ;; On X, x-get-selection-value supports more formats and | 1159 | ;; On X, x-get-selection-value supports more formats and |
| 1160 | ;; encodings, so use it in preference to x-get-selection. | 1160 | ;; encodings, so use it in preference to x-get-selection. |
| 1161 | (or (x-get-selection-value) | 1161 | (or (x-get-selection-value) |
| 1162 | (x-get-selection 'PRIMARY))) | 1162 | (x-get-selection 'PRIMARY))) |
| 1163 | ;; FIXME: What about xterm-mouse-mode etc.? | 1163 | ;; FIXME: What about xterm-mouse-mode etc.? |
| 1164 | (t | 1164 | (x-get-selection 'PRIMARY)))) |
| 1165 | (x-get-selection 'PRIMARY))))) | ||
| 1166 | (unless primary | 1165 | (unless primary |
| 1167 | (error "No selection is available")) | 1166 | (error "No selection is available")) |
| 1168 | (push-mark (point)) | 1167 | (push-mark (point)) |