From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: delete-selection-mode as default Date: Sun, 16 Sep 2018 13:14:35 -0700 (PDT) Message-ID: References: <<<83k1nxvm5j.fsf@gnu.org>>> <<<87sh2ih0bp.fsf@fastmail.fm> <770f48a8-664a-40ae-8e03-19f6aad248b6@default> <20180910181615.GA4829@ACM> <874lev3bq4.fsf@toy.adminart.net>>> <<<20180912131602.GA5582@ACM> <87d0tihxzw.fsf@toy.adminart.net>>> <<<20180913174640.GB4019@ACM> <8736udkuit.fsf@toy.adminart.net>>> <<<20180914104833.GA4103@ACM> <83k1nojgia.fsf@gnu.org>>> <<<874leq799e.fsf@toy.adminart.net> <205df9be-2e5c-4cc4-a13a-7c80eb63bedc@default> <87in363zgq.fsf@toy.adminart.net> <87a7oh4mdm.fsf@toy.adminart.net>>> <<<831s9tidjc.fsf@gnu.org>> > <<83va75gvc8.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1537128805 14380 195.159.176.226 (16 Sep 2018 20:13:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2018 20:13:25 +0000 (UTC) Cc: hw@adminart.net, spacibba@aol.com, joostkremers@fastmail.fm, npostavs@gmail.com, emacs-devel@gnu.org, yurivkhan@gmail.com, acm@muc.de, drew.adams@oracle.com, phillip.lord@russet.org.uk To: Eli Zaretskii , Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 16 22:13:20 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1dQ0-0003b0-0Z for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2018 22:13:20 +0200 Original-Received: from localhost ([::1]:60131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1dS6-00072Y-FG for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2018 16:15:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1dRV-00072I-JM for emacs-devel@gnu.org; Sun, 16 Sep 2018 16:14:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1dRU-00040S-QS for emacs-devel@gnu.org; Sun, 16 Sep 2018 16:14:53 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:51054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1dRR-0003o3-1Z; Sun, 16 Sep 2018 16:14:49 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8GKEWUg055325; Sun, 16 Sep 2018 20:14:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=m4JwNhiB4JUi/Ipu4IsoIH/SM3UhZFIwRTNDDhtelE8=; b=LLKTBMBo3zewH4CcgINTn8BcNAsg23FkyZPSIn3q4I1quTE3yMOWubvwzXEJ03NQXPsj 4TqXZx5EIDN1+nPXQCl0uWMa2+0RN1cj9qSidGlvbxOB92JhRRMFSSKzPKLTuW2/BvK7 GAzD43bBnnup04rguIKPhiCIryXK4SoZAN5ibbmAb/TNZYtLCU3c+ldI+kd3Vm1xZfC2 8DsjkuJZv/HepOcFM+Bz8f0EwYjzF9quoVX+fzKEULhWshEsd2pBpJWbkY8fiqWOYeKv fKzXx+mfLfUEr3/xMwX8fIicyRLVHkvZWs7JF3d0sN6ODj7ZNPGINSuTb6GTqi7BuvBN pA== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mgtqqk2re-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Sep 2018 20:14:39 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8GKEdT2023584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Sep 2018 20:14:39 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8GKEa7K026519; Sun, 16 Sep 2018 20:14:37 GMT In-Reply-To: <<83va75gvc8.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9018 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=663 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809160218 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229865 Archived-At: > > > > The secondary selection doesn't have all these problems, > > > > so it's a good example. > > > > > > The secondary selection can only be defined by mouse gestures. > > > > In vanilla Emacs, yes. But not if you use `second-sel.el'. > > > > You can define (set) it in several ways using the keyboard (suggested k= eys > shown): > > > > * Start secondary with `C-x C-M-SPC' (`set-secondary-start'). > > * End secondary with `C-x C-M-' (`secondary-save-then-kill'). >=20 > Which ends the secondary at point position, something that was the > main point of this discussion. That's not the point you made, of the secondary only being defined by mouse gestures. My reply is to that point. > Can you envision a way of setting a selection without the mouse, > except when point is at one of the two ends of the selection? Of course I can. It can easily be set between any two positions. Neither end need have any relation to point. (And even in asking that you switched from "mouse gestures" to "selection".) (defun my-set-secondary (beg end) "Set the secondary selection to start at BEG and end at END." (setq mouse-secondary-start (make-marker)) (move-marker mouse-secondary-start beg) (move-overlay mouse-secondary-overlay beg end))