* term.el (term-mouse-paste): Reorder to silence --without-x compilation.
This commit is contained in:
parent
cd8edbbe67
commit
45069b2e00
2 changed files with 9 additions and 9 deletions
|
|
@ -6,6 +6,7 @@
|
|||
Remove --without-x warning/error.
|
||||
|
||||
* mouse.el (mouse-yank-primary):
|
||||
* term.el (term-mouse-paste):
|
||||
Reorder to silence --without-x compilation.
|
||||
|
||||
* mpc.el (doc-view-mode): Silence --without-x compilation.
|
||||
|
|
|
|||
17
lisp/term.el
17
lisp/term.el
|
|
@ -1252,15 +1252,14 @@ without any interpretation."
|
|||
(setq this-command 'yank)
|
||||
(mouse-set-point click)
|
||||
(term-send-raw-string
|
||||
(or (cond ; From `mouse-yank-primary':
|
||||
((eq system-type 'windows-nt)
|
||||
(or (x-get-selection 'PRIMARY)
|
||||
(x-get-selection-value)))
|
||||
((fboundp 'x-get-selection-value)
|
||||
(or (x-get-selection-value)
|
||||
(x-get-selection 'PRIMARY)))
|
||||
(t
|
||||
(x-get-selection 'PRIMARY)))
|
||||
;; From `mouse-yank-primary':
|
||||
(or (if (fboundp 'x-get-selection-value)
|
||||
(if (eq system-type 'windows-nt)
|
||||
(or (x-get-selection 'PRIMARY)
|
||||
(x-get-selection-value))
|
||||
(or (x-get-selection-value)
|
||||
(x-get-selection 'PRIMARY)))
|
||||
(x-get-selection 'PRIMARY))
|
||||
(error "No selection is available")))))
|
||||
|
||||
(defun term-paste ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue