From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode as default Date: Wed, 12 Sep 2018 02:30:13 +0300 Organization: LINKOV.NET Message-ID: <87tvmvhez6.fsf@mail.linkov.net> References: <83k1nxvm5j.fsf@gnu.org> <87sh2ih0bp.fsf@fastmail.fm> <770f48a8-664a-40ae-8e03-19f6aad248b6@default> <20180910181615.GA4829@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536708975 29829 195.159.176.226 (11 Sep 2018 23:36:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 23:36:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) 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: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 01:36:10 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 1fzsCX-0007f1-DT for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 01:36:09 +0200 Original-Received: from localhost ([::1]:59984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzsEd-00059N-Jo for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 19:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzsDz-00058Z-2m for emacs-devel@gnu.org; Tue, 11 Sep 2018 19:37:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzsDy-0006dU-A7 for emacs-devel@gnu.org; Tue, 11 Sep 2018 19:37:39 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:48628 helo=pdx1-sub0-mail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzsDu-0006Ym-N1; Tue, 11 Sep 2018 19:37:34 -0400 Original-Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 7B2487F264; Tue, 11 Sep 2018 16:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=0n3NyL0hDE1vCFjKHRleVOmytbI=; b= trizNF5Xmre9YjG7pppLGAYnbQpL4qltala4Zup7/S/hbmfHTjYKDJKJpvucjB/U taYW6pTbEvb1U1jhMPmcFi7nn5ubF1s5J270mog7Zrwx735QdPiUYkWnY79VxfU+ loWkm53AIEjo2nLbW3319pM06ipd4JV9TBgjJRx0ZV0= Original-Received: from localhost.linkov.net (m91-129-104-147.cust.tele2.ee [91.129.104.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id EC0927F24E; Tue, 11 Sep 2018 16:37:27 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Mon, 10 Sep 2018 13:36:29 -0700 (PDT)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.90.62.162 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:229688 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'). This is an interesting idea. Often there is need to type C-x four(!) times: first `C-x C-x' to activate the region, and another `C-x C-x' to put point 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 region, like query-replace operating on the region with the initial position at the region beginning. So perhaps `activate-mark' should be a command, preferably bound to some easy to type key like `C-x C-SPC'. > `C-x C-x' bound to a command that just swaps point and mark > without activating the region `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.