From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Suggestion for mouse-based cut/copy/yank Date: Thu, 26 Jul 2007 09:04:39 -0700 Message-ID: References: <86lkd3pazl.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185466220 4729 80.91.229.12 (26 Jul 2007 16:10:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2007 16:10:20 +0000 (UTC) To: "David Kastrup" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 18:10:10 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 1IE5ug-0004b8-54 for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 18:10:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE5ue-0003Hp-Ar for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 12:10:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IE5sq-0000s9-FS for emacs-devel@gnu.org; Thu, 26 Jul 2007 12:08:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IE5sk-0000qP-PB for emacs-devel@gnu.org; Thu, 26 Jul 2007 12:08:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE5sk-0000q9-KT for emacs-devel@gnu.org; Thu, 26 Jul 2007 12:08:06 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IE5sF-0001cq-0b; Thu, 26 Jul 2007 12:07:35 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l6QG6jp9000979; Thu, 26 Jul 2007 11:06:45 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l6QAuJ5h024723; Thu, 26 Jul 2007 10:06:45 -0600 Original-Received: from dhcp-4op11-4op12-east-130-35-179-145.us.oracle.com by acsmt350.oracle.com with ESMTP id 3071925261185465884; Thu, 26 Jul 2007 09:04:44 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <86lkd3pazl.fsf@lola.quinscape.zz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:75584 Archived-At: > 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. Direct access to any (visible) position is what a pointer device is all about. It is not always the case when you insert one or more whole lines that you want to insert the text at bol. 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). Although I disagree that your suggestion is a good idea for either of these cases, it might help for discussion to separate whole-line selections into those that are selected in the manner you described (triple-click), and those that are selected in some other way. Your suggestion makes more sense for the former situation than for the latter (though I disagree with it in both cases). 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. > 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'?