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: 24.5; Paste from clipboard to emacs -nw on windows 8.1 Date: Wed, 5 Aug 2015 20:06:19 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1438819816 5733 80.91.229.3 (6 Aug 2015 00:10:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 00:10:16 +0000 (UTC) To: 21196@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 02:10:11 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 1ZN8l8-0000jF-RE for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 02:10:11 +0200 Original-Received: from localhost ([::1]:42846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8l7-0005Zn-Rp for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 20:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8l3-0005Ww-AJ for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN8l1-0005Ep-KK for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:10:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8l1-0005ER-GK for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZN8l0-00022O-TH for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:10: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 00:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21196 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.14388197867804 (code B ref -1); Thu, 06 Aug 2015 00:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2015 00:09:46 +0000 Original-Received: from localhost ([127.0.0.1]:40575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN8kj-00021n-81 for submit@debbugs.gnu.org; Wed, 05 Aug 2015 20:09:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53729) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN8hY-0001x7-7r for submit@debbugs.gnu.org; Wed, 05 Aug 2015 20:06:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN8hW-00035D-8H for submit@debbugs.gnu.org; Wed, 05 Aug 2015 20:06:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8hW-00034p-5g for submit@debbugs.gnu.org; Wed, 05 Aug 2015 20:06:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8hU-0005OC-At for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:06:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN8hQ-00030C-9w for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:06:24 -0400 Original-Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:32786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN8hQ-0002zP-3w for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 20:06:20 -0400 Original-Received: by qged69 with SMTP id d69so42423588qge.0 for ; Wed, 05 Aug 2015 17:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6XRQk+UmcOK0sA6qyG/k+nlKgI6sHcbXdroCW8W6lMk=; b=xxMy86y6FUDQN6zp9PLCbE2EGRkD1niFuNlJtxgk1XhHxd4Ya+xHF3mYN83gGuEJem ObVUPtXTO4K5HcZPBdfhJxYb7HKqz5q7Vo4BTrnKYvjJrJkIPSaMR/r66F5HLq7bchGS 4E2vpzJRSN0WVE3t9G59f5B8a5IZgtYw0BB7EDJO/S9ON/umMzhoBhwT1fIG/woQuMfr KbCIU+zydOCrVwL/sSGmUjpcjxAc9Eyqmh1NuxvAufBYEPvwam9f4IsGE2aQ+nf4ATsn Bmqn4p6WcoDsj0XbXd1PWrzykkv0Ec1cE24wfRQeVpuOhFxC4Gvg7IYzS26RgO5JsL79 tFSw== X-Received: by 10.140.38.21 with SMTP id s21mr21570727qgs.10.1438819579558; Wed, 05 Aug 2015 17:06:19 -0700 (PDT) Original-Received: by 10.140.99.23 with HTTP; Wed, 5 Aug 2015 17:06:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 05 Aug 2015 20:09:43 -0400 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:105319 Archived-At: 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. 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. I was also curious about why the yank function does work so, I went to see the source of the "x-get-selection-value" function too. It turns out that it's even defined on a different source file named "w32-common-fns.el". Seeing that I think that only the windows version defines this function this way, and I can't see anything like the "framep" function arround here so there is the problem. Thanks for the great emacs editor! I really admire this project! In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=/c/usr --host=i686-pc-mingw32' Important settings: value of $LANG: ESD locale-coding-system: cp1252 Major mode: Help Minor modes in effect: yas-global-mode: t yas-minor-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: End of buffer [2 times] x-get-selection-value Quit x-get-selection-value Type "q" to restore previous buffer. You can run the command `describe-function' with C-h f Type "q" to restore previous buffer. C-x C-g is undefined Quit Making completion list... Load-path shadows: c:/Users/pmercader/AppData/Roaming/.emacs.d/elpa/csharp-mode-20150714.138/csharp-mode hides d:/share/emacs/share/emacs/site-lisp/nxhtml/related/csharp-mode d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/cc-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/cperl-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/csharp-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/css-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/emacs-lisp-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/erlang-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/f90-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/html-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/js-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/latex-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/markdown-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/nxml-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/objc-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/perl-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/python-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/rst-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/ruby-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/scala-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/snippet-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/sql-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/c++-mode/.yas-compiled-snippets hides d:/share/emacs/share/emacs/site-lisp/yasnippet/snippets/text-mode/.yas-compiled-snippets d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/html-mode/.yas-setup hides d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/objc-mode/.yas-setup d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/html-mode/.yas-setup hides d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/rails-mode/.yas-setup d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/html-mode/.yas-setup hides d:/share/emacs/share/emacs/site-lisp/yasnippet/extras/imported/ruby-mode/.yas-setup d:/share/emacs/share/emacs/site-lisp/nxhtml/tests/ert hides d:/share/emacs/share/emacs/24.5/lisp/emacs-lisp/ert Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils find-func debug apropos misearch multi-isearch time-date yasnippet advice cl-extra help-fns derived easy-mmode cl-macs edmacro kmacro help-mode cl gv cl-loaddefs cl-lib setup-cygwin cygwin-mount ange-ftp comint ansi-color ring omnisharp-autoloads info easymenu flycheck-autoloads auto-complete-autoloads dash-autoloads pkg-info-autoloads epl-autoloads popup-autoloads package epg-config windmove ido tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 175944 5846) (symbols 32 24552 0) (miscs 32 87 681) (strings 16 36102 5289) (string-bytes 1 952830) (vectors 8 14963) (vector-slots 4 475764 5888) (floats 8 377 405) (intervals 28 920 33) (buffers 508 18))