From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Constantine Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#27442: Un-obsolete x-clipboard-yank, or provide analogous functional Date: Wed, 21 Jun 2017 17:29:40 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498059195 32022 195.159.176.226 (21 Jun 2017 15:33:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2017 15:33:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 To: 27442@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 21 17:33:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNhcz-00082U-9V for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jun 2017 17:33:09 +0200 Original-Received: from localhost ([::1]:54689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhd4-0007bF-Gi for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jun 2017 11:33:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhcx-0007aw-Iw for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 11:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNhcs-0007KX-IC for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 11:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNhcs-0007KP-EY for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 11:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dNhcs-0001qI-55 for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Constantine Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2017 15:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27442 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14980591307015 (code B ref -1); Wed, 21 Jun 2017 15:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jun 2017 15:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:60100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNhc1-0001p5-SU for submit@debbugs.gnu.org; Wed, 21 Jun 2017 11:32:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNgdq-0000Pr-Jg for submit@debbugs.gnu.org; Wed, 21 Jun 2017 10:29:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNgdk-0005s6-CK for submit@debbugs.gnu.org; Wed, 21 Jun 2017 10:29:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dNgdk-0005s1-96 for submit@debbugs.gnu.org; Wed, 21 Jun 2017 10:29:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNgdj-0007Es-BF for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 10:29:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNgdg-0005qO-8p for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 10:29:51 -0400 Original-Received: from forward22h.cmail.yandex.net ([87.250.230.53]:33002) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dNgdf-0005nq-VE for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2017 10:29:48 -0400 Original-Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [IPv6:2a02:6b8:0:801::ab]) by forward22h.cmail.yandex.net (Yandex) with ESMTP id EDA5C2120F for ; Wed, 21 Jun 2017 17:29:44 +0300 (MSK) Original-Received: from smtp1j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1j.mail.yandex.net (Yandex) with ESMTP id 6652C3C8162A for ; Wed, 21 Jun 2017 17:29:41 +0300 (MSK) Original-Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5NEEd2ripb-TesmjdCf; Wed, 21 Jun 2017 17:29:40 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1498055380; bh=8e7wyn71Z2fb6pYWLA/9szMTOgus1bnSn2dUqk+Ffrw=; h=To:From:Subject:Message-ID:Date; b=i9yEmqYgpd1hCTu1hAYQ3GiP2ocDUKaTkCRQyarltvNx75DZxoeOZWTcUuTYnmzKA kqE2RRp91A7z5ZWEr+3qU9qa57CaSeL7OBs5tRGW1AxSTKspNJPNIOraO4tM7DO/Xg 4Oc//+s0ZIXIDsqvOjdbsJ98loPItSf4kjuXgg44= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 21 Jun 2017 11:32:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133797 Archived-At: Emacs says: "x-clipboard-yank is obsolete since 25.1; use =E2=80=98clipbo= ard-yank=E2=80=99 instead." The problem is that clipboard-yank doesn't wo= rk same way as x-clipboard-yank does. x-clipboard-yank always uses clipboard content, which is exactly what I n= eed. I.e. if I set (setq select-enable-clipboard nil) to not clutter my c= lipboard with kills, I only get content from the clipboard. (don't get me= wrong, kill-ring is very cool, and I extensively use it in evil-mode. Bu= t I prefer to explicitly point when I want a content in the clipboard, wh= ich happens an order of magnitude rarer than usage of kill-ring). clipboard-yank uses a kill-ring instead. So if I set (setq select-enable-= clipboard nil), every usage of the function gives me a random text that m= ay or may not be in the clipboard.