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: Sat, 8 Sep 2018 20:33:18 -0700 (PDT) Message-ID: <6ad9a1be-18d0-48b6-88b0-caf9989a6684@default> References: <0C11D648-213E-4BF1-9095-33A3E0D6DC85@gmail.com> <87bm98owuj.fsf@toy.adminart.net> <83tvn0rmns.fsf@gnu.org> <87k1nvbq17.fsf@toy.adminart.net> <1d78d575-245a-96c4-fdb2-e1a384fe4883@orcon.net.nz> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536463896 5176 195.159.176.226 (9 Sep 2018 03:31:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2018 03:31:36 +0000 (UTC) Cc: Eli Zaretskii , right.ho@gmail.com, emacs-devel@gnu.org To: Phil Sainty , hw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 09 05:31:32 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 1fyqRg-0001Fa-7O for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2018 05:31:32 +0200 Original-Received: from localhost ([::1]:45935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyqTm-00082A-9c for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 23:33:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyqTc-00081r-Nh for emacs-devel@gnu.org; Sat, 08 Sep 2018 23:33:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyqTb-0004eo-PC for emacs-devel@gnu.org; Sat, 08 Sep 2018 23:33:32 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:59392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyqTX-0004aA-U2; Sat, 08 Sep 2018 23:33:28 -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 w893UWUM132199; Sun, 9 Sep 2018 03:33:23 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=4+hyoQGsp5WObkLGpphEros5mB9ieU+6n/LAtZ3gXcg=; b=x9TaXz+R092nkejQE+9dh3BabmEKQlst5QNNeq6dBekvL2rUCeSxPKJmENRKs8nhFhyj SZIprhFY8PrWZ+82W9PmXJpDS0pJxz5TmoMs1VTB6JSx4ZFDBCsHvsFpb+cyEDeJ0D7P 4z014XPAegfp0ztXT7cXlV1dciew9+pLmhhlAZwxaBOZqYSaAgTQjna6k2nTzvmOe/Qn robwysRn0PEWDSDsOrM06sdzz4vT6ic/eHb+WF2BcgHKN8WenGhD4/t0Fn5gvHuQKwTU 8xY6OofJY/pXly7L1N8eVcCHN8OkP8suf6oB/IqWcbAd3ajzI42EQrcAsPZxN7B6ZNhY hA== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mc72q9m6x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Sep 2018 03:33:23 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w893XMe0022632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Sep 2018 03:33:22 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 w893XJS7018744; Sun, 9 Sep 2018 03:33:22 GMT In-Reply-To: <1d78d575-245a-96c4-fdb2-e1a384fe4883@orcon.net.nz> 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=9010 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=785 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809090038 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:229536 Archived-At: > It's notable that of the CUA-style bindings, one can rebind C-z to > `undo' in Emacs without the same degree of conflict that the other CUA > keys introduce; so you might consider: >=20 > (global-set-key (kbd "C-z") #'undo) >=20 > C-z is `suspend-frame' by default (which makes complete sense when > Emacs is running in a terminal, so changing this default isn't an > option IMO), but it's a convenient key to *intentionally* re-purpose > if you know how to `suspend-frame' without it (n.b. C-x C-z is also > provided by default). Because it's such a fundamental behaviour, > AFAIK no other default keymaps touch this key sequence. >=20 > Or you could pick any other convenient `undo' binding, of course > (but even then you might still change C-z. I use C-z as a prefix > key, with C-z C-z as `suspend-frame', which I find provides me with > a very useful additional prefix for custom bindings.) One of the reasons I'm not a fan of `cua-mode' for Emacs is that it wastes good prefix keys (C-x, C-c ). (Yes, I know that `cua-mode' can accommodate to some extent this by way of timing, but that's not good UI, IMO.) I think C-z is wasted on a single action not only in `cua-mode' but also in vanilla Emacs. It makes sense to use it as either a prefix key or at least as a key that can be used for actions that are repeatable (by holding down the key). That said, for my own use I haven't bothered to use C-z as a prefix key or for a repeatable command. I use it to thumbify and dethumbify a frame (like iconify deiconify). But for Emacs I think it should be used as stated above, not wasted on `suspend-frame'.