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: Suggestion for mouse-based cut/copy/yank Date: Thu, 26 Jul 2007 15:09:50 +0200 Message-ID: <86lkd3pazl.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185455403 25609 80.91.229.12 (26 Jul 2007 13:10:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2007 13:10:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 15:10:02 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 1IE36O-0005S6-Io for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 15:10:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE36O-0004H9-0z for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 09:10:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IE36K-0004D9-0M for emacs-devel@gnu.org; Thu, 26 Jul 2007 09:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IE36H-00049V-TV for emacs-devel@gnu.org; Thu, 26 Jul 2007 09:09:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE36H-00049I-PM for emacs-devel@gnu.org; Thu, 26 Jul 2007 09:09:53 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IE36G-0002qm-Rs for emacs-devel@gnu.org; Thu, 26 Jul 2007 09:09:53 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id PAA10873 for ; Thu, 26 Jul 2007 15:09:45 +0200 X-Delivered-To: Original-Received: (qmail 28200 invoked from network); 26 Jul 2007 13:09:50 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 26 Jul 2007 13:09:50 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id DAAD78FA2F; Thu, 26 Jul 2007 15:09:50 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) 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:75566 Archived-At: Hi, 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. It is likely that it is ok to have this work with keyboard-controlled yanks from mouse-collected kill material, too. For what it is worth, vi has "p" and "P" commands for inserting material after and before the cursor (which perversely is not between, but _on_ characters and lines conceptually), and those also heed the "line-basedness" of the commands putting the stuff in the kill buffer. It is actually quite convenient. -- David Kastrup