From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#18629: 25.0.50; Yanking text on a MS-Windows console Date: Mon, 6 Oct 2014 18:01:47 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1412611351 28022 80.91.229.3 (6 Oct 2014 16:02:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 16:02:31 +0000 (UTC) Cc: 18629@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 18:02:22 2014 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 1XbAjr-0001Z3-BU for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 18:02:19 +0200 Original-Received: from localhost ([::1]:52842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbAjr-0004Ib-0b for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 12:02:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbAjh-0004Bs-K0 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:02:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbAjb-0000Fd-4k for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:02:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbAjb-0000FV-1Y for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbAja-0006jT-GT for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Oct 2014 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18629-submit@debbugs.gnu.org id=B18629.141261131225858 (code B ref 18629); Mon, 06 Oct 2014 16:02:02 +0000 Original-Received: (at 18629) by debbugs.gnu.org; 6 Oct 2014 16:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:35939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbAjP-0006j0-9l for submit@debbugs.gnu.org; Mon, 06 Oct 2014 12:01:51 -0400 Original-Received: from mail-la0-f42.google.com ([209.85.215.42]:38587) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbAjM-0006ir-RQ for 18629@debbugs.gnu.org; Mon, 06 Oct 2014 12:01:49 -0400 Original-Received: by mail-la0-f42.google.com with SMTP id mk6so4703413lab.1 for <18629@debbugs.gnu.org>; Mon, 06 Oct 2014 09:01:47 -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 :cc:content-type; bh=QBJGKzlHdPKMp730Zww409l9QKDe6QHilxT4FverMHQ=; b=ix3JPQBOnem0OY4AOzmEA8h05j5ce6LqgycLDVjomotGiC1PcXBzcvKjBHOMansgL0 9OKQNXTlY9RjBMvQV0btG989q5QPW4LdLRuYevq9sELU6njP/J3mQGdG//vPrfJwZ+ur qo+DiXjk0ux1R8G0/QbDDFDSYdUw4zG0OXLxbfmQQnXi2OoSa4BUmFpV5rU7r7d7oB0V 0N9QOujARnFnc38bl+YRph6VB5jzTVRWn1NfFLt2SyfnbwELwMmyfNiiDD+qJBd+qDBR DJ0Wl0akVewFbDR6mZTgeV9/HwW5B4f1W51aJpQGdCnRW0eQ7bauuL0FPY859iviJ9th uPOg== X-Received: by 10.152.22.200 with SMTP id g8mr26241978laf.1.1412611307517; Mon, 06 Oct 2014 09:01:47 -0700 (PDT) Original-Received: by 10.114.63.226 with HTTP; Mon, 6 Oct 2014 09:01:47 -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:94206 Archived-At: > Looks like you have an "old" version, then. Try updating from trunk. My version was from a recent trunk build (2014-10-02), made from an empty build directory (autogen.sh+configure+make). But it seems that it is somehow corrupt. I guess I should always use the "bootstrap" target to be sure that the build is correct... >> The expected behavior for that, I think, is the one I observe right >> now: C-y brings to the buffer the current contents of the system >> clipboard. > > I think if you upgrade from trunk, your original problem might > disappear, but the above desired behavior will also disappear. Yes, It seems so. I've just built a recent trunk version, and this is what I see: 1. Without your code below: a. The kill ring seems to work OK for "internal" text, i.e, text coming form Emacs itself. b. But I can't yank text from the system clipboard. 2. With your code below: Everything seems to work fine. > If so, please try to run the code below and tell me if it restores the > expected behavior: > > (gui-method-define gui-selection-value t #'w32-get-selection-value) > (gui-method-define gui-select-text t > (lambda (text) > (if gui-select-enable-clipboard > (w32-set-clipboard-data text)))) -- Dani Moncayo