From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: select text without moving the point in graphical interface Date: Sun, 8 Dec 2013 18:53:13 -0700 Message-ID: <20131209015313.GA8583@hysteria.proulx.com> References: <20131208190052.GA12293@doriath.local> <86de73d1-d8e2-4564-b7a7-749d7778a635@default> <20131208193420.GA12537@doriath.local> <20131208204158.GA12709@doriath.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386554013 6649 80.91.229.3 (9 Dec 2013 01:53:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2013 01:53:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 09 02:53:39 2013 Return-path: Envelope-to: geh-help-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 1Vpq2V-0005WG-3y for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Dec 2013 02:53:39 +0100 Original-Received: from localhost ([::1]:41469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vpq2U-0008FO-Nc for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Dec 2013 20:53:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vpq2F-0008FF-3a for help-gnu-emacs@gnu.org; Sun, 08 Dec 2013 20:53:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vpq28-00059F-Mm for help-gnu-emacs@gnu.org; Sun, 08 Dec 2013 20:53:23 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:45987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vpq28-000590-FM for help-gnu-emacs@gnu.org; Sun, 08 Dec 2013 20:53:16 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 17D202122E for ; Sun, 8 Dec 2013 18:53:14 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id E7D842DCC6; Sun, 8 Dec 2013 18:53:13 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94886 Archived-At: Drew Adams wrote: > Ernest Adrogu=E9 wrote: > > one of the things I like about running emacs in a terminal is that I > > can select text without moving the point; is it possible to do the > > same when running in a graphical interface (GTK)? I also dearly would like to have this behavior too. For pasting there is of course the mouse-middle button. And with mouse-yank-at-point it will paste at the point just like in a raw terminal. (setq mouse-yank-at-point t) But that is only the paste half. The cut half is still missing. > > Sorry, I wasn't specific enough. I meant selecting text using the mou= se. > > > > In a terminal, the mouse is independent from emacs and it doesn't int= erfere > > with it in any perceivable way, except when I paste something with a = middle > > click. I think it's the terminal program, and not emacs, who handles= the > > mouse inputs. >=20 > Yes. The relevant doc is (emacs) `Text-Only Mouse', which explains > that only some text terminals support mouse clicks. That is the opposite case. That covers adding mouse support to a text terminal. (Personally I would never want that. Blech! But each to their own.) The question being asked is to have the graphics terminal behave such that cutting with the mouse does not move the point. > > In a GUI, it doesn't work the same way - as soon as I click anywhere = the > > point moves to that location. I was wondering if tweaking some optio= ns I > > could make GUI emacs behave more or less like when it runs inside a > > terminal. For example, to be able to select text (using the X cursor= ) > > without moving emacs's point in the process. >=20 > Mouse selection in GUI Emacs is specifically for setting the region > to the selected text. So no, to have `mouse-1' not set point you > would need to redefine a fair number of things. It is a shame that there isn't some way to create a replacement for mouse-drag-region that does a save-excursion so that it can cut the text and then return the point to the previous position when done. I have wanted that behavior for years. > In terminal mode, Emacs does not even recognize the mouse, in the > sense that if you do `C-h k' and then click or drag the mouse, that > action is unrecognized. In terminal mode everything always works "correctly". :-) The desire would be to have the gui mode work the same. Bob