From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode as default Date: Fri, 07 Sep 2018 11:18:43 +0200 Organization: my virtual residence Message-ID: <877ejxsm18.fsf@toy.adminart.net> References: <83k1nxvm5j.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536312009 31960 195.159.176.226 (7 Sep 2018 09:20:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 09:20:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: spacibba@aol.com, emacs-devel@gnu.org, Noam Postavsky , drew.adams@oracle.com, phillip.lord@russet.org.uk To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 11:20:04 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 1fyCvr-0008D3-Om for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 11:20:04 +0200 Original-Received: from localhost ([::1]:37576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyCxx-00048x-Qd for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 05:22:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyCxD-00046c-Sn for emacs-devel@gnu.org; Fri, 07 Sep 2018 05:21:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyCxC-0005uO-Na for emacs-devel@gnu.org; Fri, 07 Sep 2018 05:21:27 -0400 Original-Received: from mo6-p02-ob.smtp.rzone.de ([2a01:238:20a:202:5302::7]:19413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyCxC-0005q4-6W; Fri, 07 Sep 2018 05:21:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1536312083; s=strato-dkim-0002; d=adminart.net; h=References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=LZmwldRxC2B7Bz/9nErLsGKgXWGssL1AkAy7XndZMg0=; b=Sin8dTxk/sJ/meVVuKcYu2IWtrmMCQjaupMPwOPu3jz1QJEMY/3lPB1EbCBug421Vg MT7OCCsVkQcg9egZG8ow7vHLdp0r9Oiot/kc4OVYbap3Zx/npRX21qaSY99etQmOL+Jv jLPezYQc2afLnQe2HCMVyXuVEKn6C76GSNhxm5lsumJdjk3wzlsvWyE8sgu5BFZdiGfH bpeOffiYiDTWOVj4EFzNih/0LDrmr1/Py/x7XexE5tIwfAsi+pjjTBOaLQ3llvgpHxNw ggLA9us1G8kvaQ75BSzvyloh+QCSNMOSsy8XTjfi1ohvhwHpwyvwCs+nQ3KfPIXttrjn QNTw== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 44.0 DYNA|AUTH) with ESMTPSA id e03b99u879KBBEY (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 7 Sep 2018 11:20:11 +0200 (CEST) Original-Received: from toy.adminart.net ([192.168.3.55]) by himinbjorg.adminart.net with esmtp (Exim 4.90_1) (envelope-from ) id 1fyCvy-0000pI-SJ; Fri, 07 Sep 2018 11:20:10 +0200 In-Reply-To: <83k1nxvm5j.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Sep 2018 09:47:52 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5302::7 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:229387 Archived-At: Eli Zaretskii writes: > [...] > Feel free to start a user poll, though: if it turns out I'm the only > one who thinks delete-selection-mode is inappropriate in programming > modes, we can make it the default; I can easily turn it off in my > configuration. Though I would urge people to actually try this in > programming modes before responding, and in any case the poll should > request to provide the major modes used with the responses. When a selection is active, why would anyone assume that typing an arbitrary letter is supposed to replace the entire selection, or to disable it? Allowing that to happen is simply a design flaw, or an oversight. And if that was allowed, it would be a case-specific decision whether the selection should be replaced or disabled, not a general one decidable by a default. I would vote for a "strict-mode", or "static-selection-mode", meaning that when a selection is active, typing an arbitrary letter makes Emacs beep and otherwise do nothing. It is always an accident when I type an arbitrary letter while a selection is active, and it only makes the accident worse when the selection is replaced, or disabled and the letter is entered into the buffer. Either I want to do something with a selection or not. There is no in-between.