From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode as default (WAS: Some developement questions) Date: Sun, 9 Sep 2018 03:23:58 +0200 Message-ID: <20180909012358.f6mjbmmw3mkvpoub@Ergus> References: <5bb3d3f0-b7d6-4279-a3db-bc220474de72@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1536456228 18195 195.159.176.226 (9 Sep 2018 01:23:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2018 01:23:48 +0000 (UTC) User-Agent: NeoMutt/20180716 Cc: hw@adminart.net, rms@gnu.org, Noam Postavsky , emacs-devel@gnu.org, eliz@gnu.org, phillip.lord@russet.org.uk To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 09 03:23:43 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 1fyoRz-0004bw-2L for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2018 03:23:43 +0200 Original-Received: from localhost ([::1]:45681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyoU5-00079L-AF for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 21:25:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyoSZ-00078Z-28 for emacs-devel@gnu.org; Sat, 08 Sep 2018 21:24:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyoSV-0002yd-Il for emacs-devel@gnu.org; Sat, 08 Sep 2018 21:24:18 -0400 Original-Received: from sonic309-26.consmr.mail.ir2.yahoo.com ([77.238.179.84]:35165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyoSV-0002f0-7R for emacs-devel@gnu.org; Sat, 08 Sep 2018 21:24:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1536456252; bh=q41fr9OTIBrSJMGBoqe6flA4RXB8P2xNIAnq9QL9UGw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=HKmHB3L7nG+OhhRWGP0PPbP4KWQKachhaBpPg/sXJKQVEWuXvI7K7VYD1lRFvgZvrkZ3EnV1Ex5jaq1Ad1Gu2zz06Yeoi/D5BQDuGWDmV8DM/BaRoCXg3d1tq1E0WyFtwfuPoZKDyFk9YF6Vs3aPTvR0z7xU50xs6wXalWGDgd2bl3jSR+PBbpNHE1KjJpS8rn23fKTuMRhUNUUnfW+FUHQRdsIo5Kb/Fg54sABIxfFZ+hpSP9Inysz8yZFtAyDtrbzkIv42wexbmNG4PcPdQxZoHJll420u85jyPsRfgAFsg22g2VHnYtKnVbzLc8w9cSuLXiE+FOEzfpmb4QZVew== X-YMail-OSG: pSSm7bQVM1mH7HO3AqAdZq3Q4aHV3X18C10drBOp9oxyr_bFvb2eXE.aafS4tx2 mggGEv18dV7lWveMo9SzWrwo4qQXb2WhjJXKtLiMSTvMXmKhjtUtP9lMHO1hikw_Mb13PVxjReaz ABZwCzb84Y0eL0WgL0rM31J2t5RpHLrt0vQOebZLHTndSyz95DL_bOCIq7uR9bSJGYnSfP5Qm.R3 vdn1IkoAcBL17cIWwGlN6d6qkr1ljGj.ReXvCSBvNKdvdQ8y_fuoQn8IpDqFZM3XigN.V7Li9EX3 KVUsS5GofL6vmxC4_SVFJeUNeG6ci2nsilVUkMkNlcFws6SiZsoua3Xf.V9L5gKreVUawpubsENf M9vchJ8gnZ.McT7mENrVAx2refBWCiBcmOBQzBtYo71pzXIyiu7VuxKKiXzN4ZvDfvyOYsedQ8gN nr4CgXt.4nKJ7vjMvDI.eHMw96__rgVc8G3FJ73Hq8qrdaKKztpAx2YTa.CXLcv9XPhtyQ2jMmoB cwvkLpy82z0DzbRi2qs9meda.gYNDWiWw2Vqrry6LZASnXUrg0ttNInkP8fy7l_N2xxw6.XDywvx 1sdcwo9hFvhDCZ1bjmyu1W3wWbqRBuNH2ilvvfJnuLY2QCNKv7JMXZSekc41dpsGW1wYnaZgQ29K NwUQbHmNAYr91WmmBJbJzx0xSln_nkNWAFJSgfd07fb6kMz3EE5BzHLOyPWLUP3a7ZxL6P7ID4K4 LLqqoWaH0alQAZJvJFSH8_70T_ntzYSlb4LxX82WiJn7UfZOYizjDQWg6dGDPXSVIdU4VwbHXXtl vdCMtkswvfPB9Ladrgz.SkbUri5yjvstiE51KrlB7U Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sun, 9 Sep 2018 01:24:12 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp432.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2201416ef4e9e9aaabf4407e64c821ab; Sun, 09 Sep 2018 01:24:07 +0000 (UTC) Content-Disposition: inline In-Reply-To: <5bb3d3f0-b7d6-4279-a3db-bc220474de72@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.179.84 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:229528 Archived-At: On Sat, Sep 08, 2018 at 07:54:18AM -0700, Drew Adams wrote: >> It seems to me that the people who like delete-selection-mode >> are those who are used to some similar behavior in some other >> editor and have not truly got used to Emacs. > >FWIW, that's not my case. My case is the opposite: I was used >to "old" Emacs, e.g., pre transient-mark-mode. When >`delete-selection-mode' came along I tried it and appreciated >it immediately. I had no problem getting used to it. Dunno why. > >Perhaps simultaneously, or soon thereafter, I started to use >other apps that had similar behavior. But I did not use them >before using `d-s-m' in Emacs. I used `d-s-m' long before I ever >used Emacs on MS Windows, for example. > >Anyway, I think you're right about most other people who >use `d-s-m'. It's likely that they got used to the behavior first >outside Emacs. That's probable, simply because many users >came to Emacs later and the behavior was already ubiquitous >outside Emacs. > >> They have two possible paths to follow: get used to Emacs, > >"Get used to Emacs" has nothing to do with it. That's almost >insulting, I think. > >> or stay in the middle. We can provide various features to >> make Emacs serve each group. > >> But here we have a proposal to make the defaults serve cater >> primarily to those who don't want to get used to Emacs, > >I think that's an awful way to express it. What is "Emacs", >that these people supposedly don't want to get used to? > >Emacs to me includes `d-s-mode'. To me, it's just as >(un)reasonable to say that those who don't want `d-s-m' to >be the default "don't want to get used to Emacs." Neither >makes sense. > >This is not about assimilating immigrants to some >dominant culture, and bothering over the question >about what to do with those who just "don't want to get >used to it" - whether to give them tourist visas, make their >short stays comfortable, and not make them adapt. > >That's the wrong way to look at this, IMO, but that's kind >of what I hear you suggesting. (But I hope I'm wrong, and >this does really surprise me coming from you, who have >typically taken a very positive and fair moral stance.) > >> rather than those who want to get used to Emacs, >> and also at the expense of experienced Emacs users. > >I don't think either default behavior would be at the >expense of experienced Emacs users. It's trivial to set >one's preference about this in an init file. I've been >doing it for decades. Not a big deal. > >This is only about what the default behavior should be. >That should have no effect on experienced Emacs users. > >It's not helpful, I think, to cast this as being about people >who do or don't "want to get used to Emacs." Putting it >that way betrays, at best, a misunderstanding, I think. > >I vote for making `d-s-m' the default because I think it >makes Emacs better - like `transient-mark-mode'. > >Can't people just opt into it? Sure, and that's been the >case for years. It will likely remain the case for many >more years, I expect. > >Why make it the default? No great reason, I think. More >people are likely to "get used to Emacs with it". More >existing Emacs users are likely to make use of it (maybe). >But there's no _compelling_ reason to turn it on - or off - >by default, IMO. > >> I am against making delete-selection-mode the default. > >Got it. And I am for it. > >(I wonder where we each stood initially when the question >was raised about turning on `transient-mark-mode'?) > >It's fine and normal for different people to feel differently >about such things, and even to feel strongly. > >I feel (fairly) strongly that `cua-mode' should not be turned >on by default, for instance. But most of the same arguments >that some are making here for `d-s-m' have been made also >for `cua-mode'. > >To me, those two are very different, especially wrt how >they affect the rest of Emacs. `d-s-m' has little to no effect >on the use of other keys etc. `cua-mode' conflicts deeply >with much of the rest of Emacs (IMO). > >That's why my arguments for turning on `d-s-m' by default >don't focus on most people being already used to that >behavior, from outside Emacs. > >That's the most common argument here in favor of `d-s-m', >but it's not mine. I think it is good behavior, and good >especially for Emacs. I picked it up after using Emacs for >years without it - because I found it helpful. > >That it facilitates going back and forth between Emacs and >other apps is a nice thing, but it's no compelling argument. > >`cua-mode' would also make it easier to go back and forth, >and I'm against that. Does it sometimes trip me up inside >Emacs or outside it, when I try to use `C-s' or `C-f' mistakenly? >Yup. But I still don't want to use `cua-mode' in Emacs, and >I still don't think it should be turned on by default. > >Just one opinion. > I agree because cua-mode is very intrusive with the normal emacs workflow, but on the other had cua-rectangle-mode is not and it is not by default in emacs (I can't really understand why) and the default rectangle selection is very primitive. The actual C-x SPC rectangle selection is not as good as cua-rectangle selection in any sense and duplicated functionalities that where already there, it is not possible to move the rectangle or change the rectangle selection to global selection, and for copy/paste/edit it requires extra commands with C-x r prefix. Cua-rectangle-mode offers exactly the same functionalities without the C-x r prefix, plus commands like rectangle selection, edition and move out of the box with no extra commands and not changing the emacs behavior. I think this is one example where the default behavior it much more primitive than the default one for not real reason.