From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Newsgroups: gmane.emacs.bugs Subject: bug#21196: Fwd: bug#21196: 24.5; Paste from clipboard to emacs -nw on windows 8.1 Date: Thu, 6 Aug 2015 19:06:26 -0400 Message-ID: References: <83oaiksd2t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438902443 30061 80.91.229.3 (6 Aug 2015 23:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 23:07:23 +0000 (UTC) To: 21196@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 01:07:14 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 1ZNUFk-0002or-FS for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2015 01:07:12 +0200 Original-Received: from localhost ([::1]:47076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUFj-00045I-N2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 19:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUFf-00044o-GX for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 19:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNUFa-00085a-HT for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 19:07:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUFa-00085N-DT for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 19:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZNUFa-0003eU-0v for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 19:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Aug 2015 23:07:01 +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.143890238913998 (code B ref 21196); Thu, 06 Aug 2015 23:07:01 +0000 Original-Received: (at 21196) by debbugs.gnu.org; 6 Aug 2015 23:06:29 +0000 Original-Received: from localhost ([127.0.0.1]:41508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNUF3-0003dh-2L for submit@debbugs.gnu.org; Thu, 06 Aug 2015 19:06:29 -0400 Original-Received: from mail-qk0-f174.google.com ([209.85.220.174]:33736) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNUF0-0003dZ-HG for 21196@debbugs.gnu.org; Thu, 06 Aug 2015 19:06:27 -0400 Original-Received: by qkdg63 with SMTP id g63so31855819qkd.0 for <21196@debbugs.gnu.org>; Thu, 06 Aug 2015 16:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TpuA5y9JbViEvnpanZibFa4p2hI1lUnV8eS5OD4fbRg=; b=gpeksYGFkHcRpgDz0VX6fjxfU4eoe2N9M7zjNycOaXSnYzop/0/jw/0im5AJgulnAG eY9a+iYntY+cpQPUb4OjyTD7AljEAHSVkwj2BpDMfj0rKVLH0Tpu2dCkWsSgNHpVAsK7 0uGqRHqZQqItx4sAow1kIawzWhFuyoUQfQPbREJ+jL/00VW2p1yVxT8F78goYf67fWZ3 2nNXmf+qVu8sL8XecAXjrkaxo8DNqC86dJNY/oguI284sVWmLBa7yKzPAqyNtylJgfsJ ybhiUqguvbdcjms83fD65YaIeCcwYVRHC6fXvmHTz8nAouH7mxTIv4IEDZ1rOFD6lWKF +fLA== X-Received: by 10.55.27.168 with SMTP id m40mr7475260qkh.68.1438902386129; Thu, 06 Aug 2015 16:06:26 -0700 (PDT) Original-Received: by 10.140.99.23 with HTTP; Thu, 6 Aug 2015 16:06:26 -0700 (PDT) In-Reply-To: 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:105338 Archived-At: 2015-08-06 10:31 GMT-04:00 Eli Zaretskii : >> Date: Wed, 5 Aug 2015 20:06:19 -0400 >> From: Pablo Mercader Alc=C3=A1ntara >> >> 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. Ok, I made the test on emacs 24.3 too, you are right it's the same. It look= s like I thought that this version was the one I had installed because is the latest previous version in the my "installs/emacs" directory. sorry! :P > >> 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. And why do we want to remove that thing that I say is a "feature" but it lo= oks like it was treated like a "bug". > > 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. Well, I use cygwin and my prefered editor is emacs, If I'm in cygwin's bash I like to use emacs "command line style" and I besides I use the beutiful "http://sourceforge.net/projects/console/" all the time to get a nice background, that also looks nice on emacs. :P I think that this feature/bug thing is working backwards. Isn't it desirebl= e to use X's clipboard on an xterm emacs session? so insted of taking the functionality from the windows version, why don't we implement it on the *nix version :D. Anyway! thanks for the answers!