From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21196: 24.5; Paste from clipboard to emacs -nw on windows 8.1 Date: Thu, 06 Aug 2015 17:31:38 +0300 Message-ID: <83oaiksd2t.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1438871550 13817 80.91.229.3 (6 Aug 2015 14:32:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 14:32:30 +0000 (UTC) Cc: 21196@debbugs.gnu.org To: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 16:32:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZNMDT-00005f-MU for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 16:32:19 +0200 Original-Received: from localhost ([::1]:45397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNMDS-0006RG-Si for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 10:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNMDK-0006Q5-Em for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 10:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNMDD-0005qR-3R for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 10:32:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNMDD-0005qK-0V for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 10:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZNMDC-0000XY-GU for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 10:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Aug 2015 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21196-submit@debbugs.gnu.org id=B21196.14388715102058 (code B ref 21196); Thu, 06 Aug 2015 14:32:02 +0000 Original-Received: (at 21196) by debbugs.gnu.org; 6 Aug 2015 14:31:50 +0000 Original-Received: from localhost ([127.0.0.1]:41307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNMCz-0000X7-SW for submit@debbugs.gnu.org; Thu, 06 Aug 2015 10:31:50 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:52432) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNMCw-0000Wx-6S for 21196@debbugs.gnu.org; Thu, 06 Aug 2015 10:31:47 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NSO00E000A8JK00@mtaout29.012.net.il> for 21196@debbugs.gnu.org; Thu, 06 Aug 2015 17:31:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSO00E890CFMA00@mtaout29.012.net.il>; Thu, 06 Aug 2015 17:31:27 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105329 Archived-At: > Date: Wed, 5 Aug 2015 20:06:19 -0400 > From: Pablo Mercader Alcántara > > Some days ago I installed version 24.5, in the previous version that I > used (24.3) everything was fine. > > I start my emacs session with the "-nw" command line option. And > proceeded to work. Everything works fine, except that now after the > update the text that I kill on emacs doesn't go into windows > clipboard. I can paste on emacs text coming from other programs through > the clipboard, but the inverse is not possible. This is expected behavior: Emacs doesn't support clipboard operations in -nw sessions, neither on MS-Windows nor on other platforms. To be sure, I just tested in v24.3 on MS-Windows, and I see there exactly the same results as you report for 24.5. So I cannot understand why you say it was OK in v24.3. > When I start emacs normally (without "-nw") everything works fine, so at > first I thought that this was some kind of new configuration. Later I > decided to make some research and found where the problem was. Looking > at the value of the variable "interprogram-cut-function" in my system I > see that it's set to "x-select-text" and in my system this function is > defined at "common-win.el". In the body of "x-select-text" the first > "cond" function is like this "(cond ((eq (framep (selected-frame)) 'w32) > ..." and I think this is the cause for the kill function to be unable to > send the text to the clipboard when running with the "-nw" option, > because when emacs runs in this mode the call "(framep > (selected-frame))" returns "t" when it is waiting for a "w32" > value. When the same call is run on the emacs running whithout the "-nw" > option the expected "w32" value appears. That's correct. And the same is true for Emacs 24.3. Maybe you mean Emacs 23, where indeed the test for the GUI frame was absent. But that was an omission, which is now fixed. If you want to have access to the clipboard in -nw sessions, you can always override x-select-text with your own version that doesn't include that test. Although I'm unsure why would you want to use text-mode sessions too much on MS-Windows; GUI sessions have, of course, full access to the clipboard.