From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode as default (WAS: Some developement questions) Date: Thu, 6 Sep 2018 20:32:54 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1536280293 11691 195.159.176.226 (7 Sep 2018 00:31:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 00:31:33 +0000 (UTC) Cc: hw , Eli Zaretskii , Phillip Lord , spacibba@aol.com, Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 02:31:28 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 1fy4gH-0002rt-JR for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 02:31:25 +0200 Original-Received: from localhost ([::1]:35949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy4iN-0007FG-VX for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2018 20:33:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy4hl-0007Aa-He for emacs-devel@gnu.org; Thu, 06 Sep 2018 20:32:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fy4hk-0001jt-Ny for emacs-devel@gnu.org; Thu, 06 Sep 2018 20:32:57 -0400 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:34701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fy4hj-0001fR-Bm; Thu, 06 Sep 2018 20:32:55 -0400 Original-Received: by mail-oi0-x22d.google.com with SMTP id 13-v6so24222409ois.1; Thu, 06 Sep 2018 17:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=/fzNoDVZMVx6Y3sGveCwb+Q3NiLP2WqXdFHPlkz7Aoo=; b=nQ5vUtm1uU86fNaljngDbD+7MQwTxfZ1yiciFZGlkCXlMH0ixdAlWXswWdlJIUvJ57 FtkdF6bUIdRWSP3vyqwq63DcSq+X9HH8Gxk4wgIld+9t/wuA/aYo7CYiqcfWyRgPuRgJ wywAmV5a7eA78Ru4A+DvHxELNhTl/jJp6akbSywh8BwNItWmqoH4d86iR17TwC8Yj6n2 yUI4sVRBoqhpQ6PQJHPQGX45a5UUxkol5bx4HIClOLYcRRKy9/HTizc3kZnSxfSH6baq OOwULtoeKDAFCL9Mk0Ojjx86OY+JX3cdT6+emHiZs6DaTaqDKCKbbv+yGBtF3daQDafY m8pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=/fzNoDVZMVx6Y3sGveCwb+Q3NiLP2WqXdFHPlkz7Aoo=; b=krpTg5NHcRe5XGUeVCXnypjWCbImhjcAD2A5wyXcxY1gnV5bGd8t/IWYEAco6sCKLM FyzCT6ymMPuIe1jPDcyv0dENvUF4iZ7SNoD724QM1xXJMxveGW2uM2zYgwYOoqpYmnFi 6OzPiCa/JBwtWEH8yyu/KEukYiUubLVvxkXLDiOFF+9B2iniSUyfLxFEbfKzUs2BW9eI 2mjqOxyBIG3cxIWCxV4xJAR99AF2Mz36S5Q9SsQxFqkBGmWp2gZYMlKmd14RkkRlkGRR XWCcWvrTxBcfqRvnxoohbvR7VLXRo/QQXzXutGdT+OnH0yFL4ToTWBCUf8wDo4i1v8mn o3xA== X-Gm-Message-State: APzg51AgQEOIoVjbb+jW42+a9zDwghcd6/OjcgpU06704MKgbBOP710G uXaaE3qAWaAzK7D0Ou3otCwS/jP9fNPmXTRkQSI= X-Google-Smtp-Source: ANB0VdaoDiJmHPzwefGcy36k6VTJnfyTC26i/fuc7+L8tX1YNZUcoH0371g3YFBHCrjLKaamzUCYyQauy7YOw5fjKFw= X-Received: by 2002:aca:506:: with SMTP id 6-v6mr5644099oif.23.1536280374698; Thu, 06 Sep 2018 17:32:54 -0700 (PDT) Original-Received: by 2002:a9d:540f:0:0:0:0:0 with HTTP; Thu, 6 Sep 2018 17:32:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22d 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:229361 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 >> >> 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. I don't understand why a user who is okay with replacing the region with a single letter in text mode, would all of sudden dislike the idea in a code buffer. Or, conversely, why a user who dislikes replacing the region with a single letter in code buffers, would suddenly be happly about it in a text buffer. > It's equivalent to your doing this without `delete-selection-mode': > C-x C-x M-w, then some letter I guess you meant C-w there. > I see zero difference between editing code and editing plain prose, > in this regard. In both cases the selection can be replaced by typing, As mentioned above, I agree with this. > and that's a plus, not a minus. Maybe. My feeling from using non-Emacs editors (gasp!), is that the main use of this sort of thing is rather for replacing the selection by pasting, not so about much typing. Or, for when some feature inserts some default text, it highlights that text, indicating to the user that they may replace it by typing (i.e., it's rare that a user-created selection is deleted by typing).