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: Tue, 11 Sep 2018 17:13:32 -0700 (PDT) Message-ID: References: <83k1nxvm5j.fsf@gnu.org> <87sh2ih0bp.fsf@fastmail.fm> <770f48a8-664a-40ae-8e03-19f6aad248b6@default> <20180910181615.GA4829@ACM> <87tvmvhez6.fsf@mail.linkov.net> 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 1536711984 5303 195.159.176.226 (12 Sep 2018 00:26:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 00:26:24 +0000 (UTC) Cc: hw@adminart.net, spacibba@aol.com, Joost Kremers , Noam Postavsky , emacs-devel@gnu.org, Alan Mackenzie , Eli Zaretskii , phillip.lord@russet.org.uk To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 02:26:19 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 1fzsz5-0001I1-7v for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 02:26:19 +0200 Original-Received: from localhost ([::1]:60078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzt1B-0006JK-HL for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 20:28:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzszy-00063R-Ng for emacs-devel@gnu.org; Tue, 11 Sep 2018 20:27:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzsn4-0004xF-Me for emacs-devel@gnu.org; Tue, 11 Sep 2018 20:13:55 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:53042) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzsn0-0004v7-8u; Tue, 11 Sep 2018 20:13:50 -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 w8C03oju027289; Wed, 12 Sep 2018 00:13:40 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=OF4OFBD5eLCIUqlLOukGDIYCQ0Y3S0PPAdFV8+RSqac=; b=wjJkECt5vrcNVOVpmP1iANG0EZ9VylFsPtxf2DmiI8gcs/2SpSapwB2fEQGI3x1W+x9B tL1C4fZmJtKQqbcHxx9rA2yQltPKqm4gK0EvMVN7CgcKUU+VP5P2aA6WU9L7F/NCmqEw Ng8gaFCK8mIEJWsgfUOWMKQrwgZX1TziXI2slZCHQZbKC13AvYwdSogFxCN4jLvGcX86 fIWUPwhMEzWjLA1xL0hzOPkQzrSwKwHvlWQRhcoLlu+jAF+6lJKhVfM8igXhnwge6M3V 1G27hBnBJ35AwvY9zRvVyOD1uHDveRNceC+h5haRU9ZUqrETj/QKfEJs/27AqzZ3ax2m 1Q== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2mc5utf95f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Sep 2018 00:13:40 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8C0DYQs018280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Sep 2018 00:13:34 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8C0DXBx001550; Wed, 12 Sep 2018 00:13:33 GMT In-Reply-To: <87tvmvhez6.fsf@mail.linkov.net> 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=9013 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809120000 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:229690 Archived-At: > > But we should also offer a command that just activates the region, > > nothing more. By default that would be unbound (or at most bound > > to something other than `C-x C-x'). >=20 > This is an interesting idea. Often there is need to type C-x four(!) tim= es: > first `C-x C-x' to activate the region, and another `C-x C-x' to put poin= t > back where it was before previous swapping point and mark with `C-x C-x' > because some commands expect point to be at certain boundary of the regio= n, > like query-replace operating on the region with the initial position > at the region beginning. >=20 > So perhaps `activate-mark' should be a command, preferably > bound to some easy to type key like `C-x C-SPC'. That's taken by `pop-global-mark'. And users who have rebound it might well have rebound it to some similar action. Icicles binds it by default to ` icicle-goto-global-marker-or-pop-global-mark', which lets you navigate among local or global markers. Let's just have the command first, without binding it to a key. > > `C-x C-x' bound to a command that just swaps point and mark > > without activating the region >=20 > `C-u C-x C-x' swaps point and mark without activating the region, > so a new customizable option could invert the meaning of its prefix arg, > and its default value could depend of whether d-s-m is active. Again, users who have rebound it might well have rebound it to some similar action. Icicles puts several alternative behaviors on `C-x C-x': 'exchange-point-and-mark' or save a region or select a saved region. With no prefix arg, invoke 'exchange-point-and-mark'. If you use library 'Bookmark+', then you can use a prefix arg. * Plain 'C-u': What vanilla Emacs does - temporary Transient Mark mode. * Plain 'C-u C-u': select (activate) one or more bookmarked regions. * Numeric prefix arg: bookmark (save) the active region using 'icicle-bookmark-cmd'. . Arg < 0: Prompt for the bookmark name. . Arg > 0: Do not prompt for the bookmark name. Use the buffer name plus a prefix of the region text as the bookmark name. . Arg =3D 0: Same as > 0, except do not overwrite any existing bookmar= k with the same name.