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: Some developement questions Date: Thu, 6 Sep 2018 16:47:07 -0700 (PDT) Message-ID: References: <<<8336v6cvem.fsf@gnu.org>> <<8736v6icgt.fsf@himinbjorg.adminart.net> <83tvnmb958.fsf@gnu.org>> <<877ekigiiw.fsf@himinbjorg.adminart.net> <837ekhb2me.fsf@gnu.org>> <<87zhxcbmtr.fsf@himinbjorg.adminart.net> <83in409lub.fsf@gnu.org>> <<871sanb71j.fsf@himinbjorg.adminart.net> <83y3cu7t9j.fsf@gnu.org>> <<87lg8t2ki9.fsf@himinbjorg.adminart.net> <20180827015422.lcq44zvsjffeau4j@Ergus>>> <<<83a7p76f5e.fsf@gnu.org> <87lg8p9o6y.fsf@russet.org.uk>>> <<<83pnxx1foj.fsf@gnu.org> <87k1o1a06q.fsf@russet.org.uk>>> <<<877ek1ql6u.fsf@toy.adminart.net> <87tvn2g665.fsf@russet.org.uk> > <<83r2i6wv4v.fsf@gnu.org>> > <<83k1nywjwv.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 1536277558 22237 195.159.176.226 (6 Sep 2018 23:45:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 23:45:58 +0000 (UTC) Cc: hw@adminart.net, spacibba@aol.com, emacs-devel@gnu.org, 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 Fri Sep 07 01:45:53 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 1fy3yC-0005ii-Ki for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 01:45:52 +0200 Original-Received: from localhost ([::1]:35866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy40I-0000Qs-M8 for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2018 19:48:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy405-0000Hb-Sv for emacs-devel@gnu.org; Thu, 06 Sep 2018 19:47:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fy404-0006nu-TT for emacs-devel@gnu.org; Thu, 06 Sep 2018 19:47:49 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:40802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fy401-0006Xq-0N; Thu, 06 Sep 2018 19:47:45 -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 w86Nio1a186674; Thu, 6 Sep 2018 23:47:11 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=+Ke4clvzbHC3zqFIn7HcBTpSzQgq6Ojx59pJEUOgMqo=; b=4cuyZxRGr+CY9GQc25/wz/JOXfP7KFWK+l8tLkHEnjFT1ubKf2R0DHhHU1rjhQRvWGCi 5QkNFZiufDj4UhExTg+JAcV665n59TkixFSZX9ISaP1HKiWYfTdaov1xzpJSRhBWFn48 9mNtHAn3K1f4OVUJ+XNci4KMEB1GpyE/1f66bMyYUYnKAtZ5bdZVdyCdN/UP7bNuuI9N jiEs/apcIhJ1NPVrdpRgeIi1AFkBrbO9ceLzEOQapy/zW3ZGZeqT+8jNDQ0gN+LU1rbm bf4QvWsQJ4EIr1VMui1or0JfW35LSteoJFw0wuaXxwGJAIxelRvZcfGpHsflzxG4rS8c 4w== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2m7j6ty2pr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Sep 2018 23:47:11 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w86NlA35007547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Sep 2018 23:47:10 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w86Nl8DR013659; Thu, 6 Sep 2018 23:47:09 GMT In-Reply-To: <<83k1nywjwv.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=9008 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=583 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809060231 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:229360 Archived-At: > > > > we should turn on `delete-selection-mode' by default. > > > > > > I don't think we can, because it gets in the way when editing code. > > > > How so? It doesn't get in my way. Quite the contrary - I appreciate > > it for editing code. Please give a recipe >=20 > Type "C-x C-x", then some letter: puff! the whole region is gone. > This could be okay in text modes, but in code buffers users generally > don't replace regions with single letters. Just don't do that. Not a problem at all. Never been a problem for me. And if I somehow did that by mistake I'd just undo it. It's equivalent to your doing this without `delete-selection-mode': C-x C-x M-w, then some letter I see zero difference between editing code and editing plain prose, in this regard. In both cases the selection can be replaced by typing, and that's a plus, not a minus. Nothing obliges you to replace the region. If you want just to swap point and mark, without acting on the region, then just C-g. That C-x C-x activates the region is what's behind this. If you don't want the region to be active then C-g after C-x C-x. Typing a letter is no different from using M-w: you're acting on the active region. C-x C-x is no longer just swapping point and mark. That ship sailed long ago, when we turned on `transient-mark-mode' by default. Now it also activates the region, and anyone who doesn't want it activated can just use C-g to deactivate it.