From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Suggestion for mouse-based cut/copy/yank Date: Thu, 26 Jul 2007 19:47:36 +0200 Message-ID: <85abtj83bb.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185472075 26637 80.91.229.12 (26 Jul 2007 17:47:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2007 17:47:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 19:47:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IE7RG-0000JG-7W for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 19:47:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE7RF-0003AU-Lf for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 13:47:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IE7RC-00037R-7d for emacs-devel@gnu.org; Thu, 26 Jul 2007 13:47:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IE7RA-00034c-RD for emacs-devel@gnu.org; Thu, 26 Jul 2007 13:47:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE7RA-00033x-J3 for emacs-devel@gnu.org; Thu, 26 Jul 2007 13:47:44 -0400 Original-Received: from mail-in-06.arcor-online.net ([151.189.21.46]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IE7R9-0008Sm-VR for emacs-devel@gnu.org; Thu, 26 Jul 2007 13:47:44 -0400 Original-Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 5EF2031F156; Thu, 26 Jul 2007 19:47:42 +0200 (CEST) Original-Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 3F1925BD77; Thu, 26 Jul 2007 19:47:42 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-079-089.pools.arcor-ip.net [84.61.79.89]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 1C62730A940; Thu, 26 Jul 2007 19:47:42 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id CCD341C39595; Thu, 26 Jul 2007 19:47:36 +0200 (CEST) In-Reply-To: (Drew Adams's message of "Thu\, 26 Jul 2007 09\:04\:39 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3776/Thu Jul 26 17:41:16 2007 on mail-in-03.arcor-online.net X-Virus-Status: Clean X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75599 Archived-At: "Drew Adams" writes: >> I often mark material with the mouse using triple clicks (whole >> lines). The double click right on the last line for deletion works >> fine and intuitively and makes it easy to deal with whole lines. >> >> However, when yanking with a click, material is yanked right at point >> rather than at the start of line. >> >> That is a nuisance. So I think it would be nice to store the >> "granularity" of a mouse click/mark away and use it to move to begin >> of word/line before yanking. Maybe the best way would be to use a >> yank-handler property on the string in question. > > I disagree. Yank by mouse should occur at the pointer position. You > should always be able to point and shoot. So you are for disabling double and triple clicks for marking since the don't require exact point and shoot? > Direct access to any (visible) position is what a pointer device is > all about. Why do we then have triple clicks for marking? > It is not always the case when you insert one or more whole lines > that you want to insert the text at bol. Then you could easily refrain from triple-clicks in order to mark your text. > You need to be able to specify the exact location using the mouse, > and that location should not be limited by either what it is that > was selected (e.g. whole lines) or how it was selected (e.g. triple > clicks). We violate that rule already for right mouse clicks: if you have marked a region with triple clicks, you can extend the region by clicking once anywhere with the right mouse key. According to your logic, the right mouse key should only mark a partial line, then. > You might propose that a `mouse-2' triple-click would yank at bol > (and a double-click would yank at beginning of word), but I still > think that this kind of thing is a bad idea. Double click action must be an extension of single-click, since the single click gets executed anyway. >> It is likely that it is ok to have this work with >> keyboard-controlled yanks from mouse-collected kill material, too. > > If you use the keyboard, then `C-a C-y' does what you want, no? Am I > missing something, or would this just save you a `C-a'? Correct, which is why this is less interesting for keyboard yanks. So one could well restrict this functionality to mouse-yank-at-click. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum