From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#29357: Cut and paste problems on Linux on a text virtual console no longer works Date: 15 Aug 2020 08:52:56 -0000 Organization: muc.de e.V. Message-ID: <20200815085256.65438.qmail@mail.muc.de> References: <20171119160935.GA4532@moocow> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40813"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/11.3-RELEASE-p9 (amd64)) Cc: acm@muc.de, 29357@debbugs.gnu.org To: Stefan Kangas , Dr.Michael L.Dowling Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 15 10:54:08 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6rx2-000AVg-Pq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 10:54:08 +0200 Original-Received: from localhost ([::1]:60000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6rx1-000535-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 04:54:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6rww-00052z-4E for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 04:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6rwv-000618-Qq for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 04:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6rwv-00009H-Pn for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 04:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Aug 2020 08:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29357 X-GNU-PR-Package: emacs Original-Received: via spool by 29357-submit@debbugs.gnu.org id=B29357.1597481587503 (code B ref 29357); Sat, 15 Aug 2020 08:54:01 +0000 Original-Received: (at 29357) by debbugs.gnu.org; 15 Aug 2020 08:53:07 +0000 Original-Received: from localhost ([127.0.0.1]:54257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6rw3-000083-J6 for submit@debbugs.gnu.org; Sat, 15 Aug 2020 04:53:07 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:18451 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1k6rvz-00007W-DQ for 29357@debbugs.gnu.org; Sat, 15 Aug 2020 04:53:06 -0400 Original-Received: (qmail 65439 invoked by uid 3782); 15 Aug 2020 08:52:56 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185203 Archived-At: Hello, Michael and Stefan. In article you wrote: > [Please use "Reply to all" so the discussion is in the bug tracker.] > Hi Michael, > Thanks for replying back with details. I'm hoping that the information > you have provided will help someone who knows more about this stuff > investigate this. > Best regards, > Stefan Kangas > "Dr. Michael L. Dowling" writes: >> Hello Stefan! >> Thanks for replying. This is an old bug report but is nevertheless >> still valid. >> On Mon, Aug 10, 2020 at 09:14:36AM -0700, Stefan Kangas wrote: >>> "Dr. Michael L. Dowling" writes: >>> > The Report: >>> > If I use X-windows, there is no problem with cutting and pasting from >>> > outside an emacs buffer into an emacs buffer and vice versa. But this >>> > no longer works when in a text console. When on a Linux virtual >>> > console, pasting into an emacs buffer results in the message: >>> > "No selection available" >> This continues to be the case to this day. Forgive me for not answering each point individually. The problem with GPM and Emacs had been annoying me so much that I got into the GPM source code in early 2016 to try and fix it. The conclusion I came to then was that the GPM mouse works in two exclusive incompatible ways: (i) it works on the virtual terminal; (ii) it works under the control of an application, such as Emacs. These two modes don't interact with eachother. Unfortunately, I didn't note down any of the precise details in GPM, but the _only_ way to transfer text into or out of Emacs with GPM is first to do M-x gpm-mouse-mode (to disable "application" mode), followed by normal GPM operations on the screen. I actually have gpm-mouse-mode disabled by default, since I don't need to use mouse facilities in Emacs. I did make a note about this in the Emacs manual on the page "Text-Only Mouse". There are several annoyances with this way of working - if you've got side-by-side windows, you've really got to get rid of all but the pertinent window before being able to mark text with the mouse; when you yank text in with the middle button, linefeeds misbehave, giving indentation where none is wanted. For all that, having GPM is better than not having it. [ .... ] >> Cheers, >> Mike -- Alan Mackenzie (Nuremberg, Germany).