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 11:04:50 -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>> 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 1537120991 5490 195.159.176.226 (16 Sep 2018 18:03:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2018 18:03:11 +0000 (UTC) Cc: 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 , hw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 16 20:03:06 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 1g1bNy-0001Ih-4g for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2018 20:03:06 +0200 Original-Received: from localhost ([::1]:59822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1bQ4-0004hT-Lx for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2018 14:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1bPy-0004gw-1j for emacs-devel@gnu.org; Sun, 16 Sep 2018 14:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1bPx-0005Ol-9C for emacs-devel@gnu.org; Sun, 16 Sep 2018 14:05:09 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42976) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1bPt-0005BX-H9; Sun, 16 Sep 2018 14:05:05 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8GI4tse008675; Sun, 16 Sep 2018 18:04:55 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=k8Ir/wOUFABFv/gcnsD2XOHvV5Ic5gNk36mPFdmKJi8=; b=OLNvgtc7FTDIVf4TdanNNc3Aaxn1TxXb/REVHkVyIPIIdbuCFXqa2A5z632ylJgzWZ1F XBCRoigaPYoWxLq1lfg2Iar1JV2aTJMn8PulDyq/Nlit69O3YEAy74z0VjJGZMlFUoms 9SR276YNdnwLYKDdJ0Q6uP7hR7C0rq5Kf1rKEeM8Kv+K4vQetMqobWY1wVx1zkFLHOi3 mttu05hqyLYyRAFph72rkPAh7lTDWILk6tNDggOP0fhK7c+C2UNDKZtIKH5Pb6516Cdv oOfillXO9xCJnOt/6qJeaj2pdarm3XP3MA9bIrEkTJ95UbkVcypYTejDw1ZJNE6DRfao RQ== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2mgsgtb2mn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Sep 2018 18:04:55 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8GI4rY4010117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Sep 2018 18:04:53 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8GI4pI4023530; Sun, 16 Sep 2018 18:04:52 GMT In-Reply-To: <<831s9tidjc.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=9017 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=729 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809160194 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 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:229856 Archived-At: > > The secondary selection doesn't have all these problems,=20 > > so it's a good example. >=20 > The secondary selection can only be defined by mouse gestures.=20 In vanilla Emacs, yes. But not if you use `second-sel.el'. You can define (set) it in several ways using the keyboard (suggested keys = shown): * Start secondary with `C-x C-M-SPC' (`set-secondary-start'). * End secondary with `C-x C-M-' (`secondary-save-then-kill'). * Set secondary to the region by using a prefix arg with `C-M-y'=20 (`secondary-yank|select|move|swap') The last of these does multiple things, depending on the prefix arg: * None: Yank secondary selection * Zero: Select secondary as region. I.e., put region where secondary is. * > 0: Move secondary to region. * < 0: Swap region and secondary. The last two of these are ways to set the secondary from the region. So just as you can set the region in multiple ways, so can you set the seco= ndary. Each way of setting the region gives you a way to set the secondary.