mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/select.el: Use lexical-binding.
(gui-set-selection): Provide an implementation for non-GUI frames. * lisp/term/x-win.el: Use lexical-binding. (x-clipboard-yank): Fix up missed renamings. * lisp/term/w32-win.el (libgif-version, libjpeg-version): Silence compiler. (w32--set-selection): Fix up var names. * lisp/term/pc-win.el: Use lexical-binding. (w16-selection-exists-p): Silence compiler warning. (w16-selection-owner-p): Fix up missed renamings. * lisp/emacs-lisp/bytecomp.el (byte-compile-form): Remove left-over debug. * lisp/frame.el (frame-notice-user-settings): Fix excessive quoting. Fixes: debbugs:18791
This commit is contained in:
parent
6a7884caf2
commit
d361bcfbc7
9 changed files with 52 additions and 34 deletions
|
|
@ -1,4 +1,4 @@
|
|||
;;; x-win.el --- parse relevant switches and set up for X -*-coding: iso-2022-7bit;-*-
|
||||
;;; x-win.el --- parse relevant switches and set up for X -*-coding: iso-2022-7bit; lexical-binding:t -*-
|
||||
|
||||
;; Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc.
|
||||
|
||||
|
|
@ -1163,8 +1163,8 @@ as returned by `x-server-vendor'."
|
|||
"Insert the clipboard contents, or the last stretch of killed text."
|
||||
(declare (obsolete clipboard-yank "25.1"))
|
||||
(interactive "*")
|
||||
(let ((clipboard-text (x-selection-value-internal 'CLIPBOARD))
|
||||
(x-select-enable-clipboard t))
|
||||
(let ((clipboard-text (gui--selection-value-internal 'CLIPBOARD))
|
||||
(select-enable-clipboard t))
|
||||
(if (and clipboard-text (> (length clipboard-text) 0))
|
||||
(kill-new clipboard-text))
|
||||
(yank)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue