From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Huchler Newsgroups: gmane.emacs.help Subject: Re: Is Elisp really that slow? Date: Fri, 17 May 2019 18:29:44 +0200 Message-ID: <87pnoht56v.fsf@mail.de> References: <878sv7sp3r.fsf@telefonica.net> <83r28z8zl9.fsf@gnu.org> <20190515210924.sijzy6mnpgzkt4gm@Ergus> <83ftpecwu1.fsf@gnu.org> <20190516161408.4dov3dwk5h4yoizn@Ergus> <838sv6cmwt.fsf@gnu.org> <20190516202327.5cgy2s4kppy3ahxa@Ergus> <871s0yqg2i.fsf@telefonica.net> <3210C8E9-7A74-47D6-81A0-470948E6D09C@gmail.com> <87r28xq0j1.fsf@telefonica.net> <20190517055202.ted62gt6hqcip7xt@Ergus> <83mujlbgjh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32777"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 17 18:30:08 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRfkD-0008JB-Oc for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2019 18:30:05 +0200 Original-Received: from localhost ([127.0.0.1]:51040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRfkC-0005k7-P7 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2019 12:30:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRfk2-0005jz-5O for help-gnu-emacs@gnu.org; Fri, 17 May 2019 12:29:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRfk0-0001tE-RY for help-gnu-emacs@gnu.org; Fri, 17 May 2019 12:29:54 -0400 Original-Received: from [195.159.176.226] (port=44048 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRfk0-0001rD-Kd for help-gnu-emacs@gnu.org; Fri, 17 May 2019 12:29:52 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hRfjz-00080U-91 for help-gnu-emacs@gnu.org; Fri, 17 May 2019 18:29:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:2VqCyFj3W1ppk44x6AxWWtKmFR0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120499 Archived-At: Hello guys, Eli Zaretskii writes: > If you want to argue that Emacs should be a dual-mode editor like the > vi family, and that this is your "future", then we will never agree. > One of the revolutions that Emacs brought to text editing was its lack > of modality, where you just type text to have it inserted. Dual-mode > editors are a thing of the past in my eyes, a remnant from the old > days when editors didn't have the real-time display, where you needed > to have commands like "move N lines from the current one, then delete > M lines" etc. Please don't even get me (and others) started on this > "feature". I was reading your conversation and was mostly on your side till here. I have to disagree with you at this point, sure many of this do things 10 times commands are very seldom useful, not never but seldom. But that has nothing to do with modal vs non modal. Modal is more efficiant, something simple as copy / paste is not only less keys to press but literally more healthy, pressing c + reposition + v instead of M-k + reposition + C-Y is just better for your fingers. And for programmers 50% of commands you do as programmer are not basic text manipulation like insert/delete key. So 50% of the keystrokes/combitations you use on emacs are a attack on your health, and are more likely to result in a error, hitting a long C-c C-q or even longer commands is not so easy, even you don't get pain in your fingers. Btw it's not only pain where many emacs famous hackers became problems with, it's also getting faster tired. http://ergoemacs.org/emacs/command-frequency.html But I have to admit that I use the paredit commands or at least some of em not so much for navigation but for manipulation. It kind of makes sense and they are mostly 1-2 modifier and a arrow key. They are easy to remember and that is a plus of course, I just think that the GNU project should prioratise the health of their Users more than the rememberability. Btw there is a middle ground, look at xah-fly-keys, besides the modal mode it also has a mode that depending on the keyboard can use key combinations that are no keychords, so you don't have to hold a modifier, which is what hurts your pinky. So I hit my easy accessable Menu key and then afterwards the c key for copying as example, the holding of keys and then stretching to other keys is what hurts the pinky so much and why C-c C-f as example is a horrible command. Sadly we have to accept the current default keyboard layout therefor the default settings in xah-fly keys is that space is the command key and that only in command mode so for that you need the modal mode. But we should not forget that the old emacs defaults were made for more ergonomic keyboards that today we don't have anymore: http://ergoemacs.org/emacs/emacs_kb_shortcuts_pain.html They had the Ctrl and meta/alt key switched. So witch a bit of flexing you could press the ctrl key with your thumb and not with your pinky. So that the keyboard shortcuts are optimised for A rememberability and B old lisps keyboards that 99.999% of the users don't use is surely not a good default, I am sorry. A way to solve that would maybe be intergrating something like ergoemacs or xah-fly-keys and if you start emacs without config ask do you want modal or classic mode, or something along that line. Heck switching Control and Meta key in all keyboard configurations would probably better the situation a lot. Because that was what the first developer wanted back then with their lisp keyboards, but because of backward compatibility the sitution became worse because the keyboard changed and no emacs developer reacted to it. > And you contradict yourself here: simple text editors all provide > operations on the selected portion of text. Emacs does that, while > vim tells the users to remember the cryptic "N,M s/foo/bar/g" stuff > that goes back to the 50-year old ed(1) and sed(1) editors! I agree on that > Excuse me, but this is nonsense. Our menu and tool bar say copy/paste > for at least 20 years, as do the manuals. I wonder when people will > stop beating this dead horse. Yet how do you remember M-k and C-y because you know it means kill/yank, else this shortcut makes no sense, so at least if you prioratise rememberability over the health of the developers be consequent, if you call it copy and paste make it C-c or M-c and for paste C-p. Then you would at least be consequent. That C-p is bound to previous line is no real reason because you also have they arrow keys bound to it (which also is easier to remember), and that C-c is for extentions their shortcut beginning also don't matter because that problem is solved in cua-mode just add a small timer if you are not fast enough to add the second part it's copy if you are fast enough you can do your long shortcut.