From: Jean Louis <bugs@gnu.support>
To: Gregory Heytings <gregory@heytings.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Suggested experimental test
Date: Wed, 24 Mar 2021 08:42:42 +0300 [thread overview]
Message-ID: <YFrRUgVaTjZa3tsX@protected.localdomain> (raw)
In-Reply-To: <22aaf0fadd2892c6dc2e@heytings.org>
* Gregory Heytings <gregory@heytings.org> [2021-03-23 17:17]:
>
> > > > > > I use C-o (usually followed by C-n) many times a day,
> > > > > > instead of <Enter>, in order to suppress re-indentation
> > > > > > of the current line in cases where that re-indentation
> > > > > > will be incorrect for my purposes**.
> > > > >
> > > > > Oh, I see -- it's useful as an alternative to `RET' exactly
> > > > > when re-indentation does the wrong thing?
> > > >
> > > > Yes, but not only that -- it doesn't move point to the next
> > > > line, unlike RET.
> > >
> > > Why should a control key must be reserved forever for that very
> > > specific purpose, and for that very specific purpose only, in the
> > > default Emacs bindings?
> >
> > Opening an empty line is a very useful editing primitive, not unlike
> > going to the next line with RET.
> >
>
> I'd bet it is useful, as it is, only for 0.5% of Emacs users, perhaps even
> less. No other editor I know has that feature.
It cannot be argument here that other editors don't have features
built-in into Emacs. Those are known facts. Emacs is advanced
editor. Other editors simply don't have features of Emacs, unless they
are Emacs-like. But there are several Emacs-like editors: Edwin in MIT
Scheme, mg in OpenBSD, e3em, Zile, Zile on Guile, Emacs on Guile,
those are once that I use from time to time here, including as a
replacement for emacsclient (when something goes wrong). I have used
those multiple times during last month. More references:
https://wiki.gentoo.org/wiki/Project:Emacs/Emacs-like_editors
Now when you bet, I also bet you don't use Emacs-like editors, and I
am unsure how much you use Emacs beside those other editors you use.
Another feature that many editors don't have is macro feature, editors
that do have macro features are always more advanced than
others. Because other editors do not have that feature, should we
disable macros in Emacs?
And then which other editors do you mention? Can we get the
disclosure? Your personal experiences should or could be reasoned to
understand those features you are referring to.
> And I'd bet that 90% of those 0.5% would be happier with a better
> open-line primitive, for example one which can be called when point
> is in the middle of a line, like "o" and "O" in vi.
I have mentioned my personal case and I said I would not like changing
default of C-o or getting habit with my personal customizations to
have C-o behave like O in vi. In relation to "o" in vi, I do not open
new line below the current one, but I agree that quicker key binding
would be nice. "o" from vi in Emacs is easily replaced with C-o as
instead of using the current line, then I would be simply using one
line below.
- "o" in vi -- frequently used, it opens new line after current line,
regardless where is cursors located. In Emacs: go to one line below,
beginning of line, press C-o
- "O" in vi - frequently used, opens new line before current line and
places cursor at beginning of the line for writing, in Emacs, C-a
C-o does the same.
Again, I would not like changing Emacs default behavior as for me who
works on various Emacs versions, including some older like few years
(OS never get updated on those computers) -- including using
Emacs-like editors frequently on remote VPS-es or remote computers,
sometimes on personal computer.
> The discussion showed that those who use it use it at BOL, and that
> it wasn't used alone, but as part of a sequence, for example C-a C-o
> or C-o C-n. Nobody even mentioned the fact that open-line uses the
> fill-prefix and the left-margin.
>
> As I said, an improved version of that command could for example be put on
> M-RET. Here's an attempt:
>
> (defun smart-open-line (&optional arg)
> (interactive "*p")
> (when (> arg 0)
> (beginning-of-line)
> (let ((p (point-marker)))
> (dotimes (_ arg) (insert "\n"))
> (goto-char p)))
> (when (< arg 0)
> (setq arg (abs arg))
> (beginning-of-line)
> (forward-fine 1)
> (dotimes (_ arg) (insert "\n"))
> (forward-line -1)))
> (global-set-key (kbd "M-RET") 'smart-open-line)
I have tried that version, it may be better than this one below that I
have ready -- but remember, I am not using it and do not want to
depend on it, that it does not change my finger work when I am working
on un-customized Emacs versions.
(defun my-C-o ()
"Opens new line regardless where is cursor positioned."
(interactive)
(move-beginning-of-line nil)
(open-line 1))
but I would like to ask not to bind M-RET to something by default in
Emacs, as it is used very efficiently in the package Hyperbole, and I
recommend that you try using Hyperbole to understand M-RET
> And even assuming that it is useful as it is, that doesn't answer
> the main question: why should a control character key be reserved
> forever for that very specific purpose, and for that very specific
> purpose only?
Because it is default for many years, learned and used by people and
adopted by other Emacs-like editors.
You can make then same question like why should C-a be used to jump to
beginning of the line or C-f to move one char forward.
Nothing is forever.
next prev parent reply other threads:[~2021-03-24 5:42 UTC|newest]
Thread overview: 171+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-20 9:03 Suggested experimental test Gregory Heytings
2021-03-20 11:14 ` Jean Louis
2021-03-20 11:27 ` Eli Zaretskii
2021-03-20 11:34 ` Gregory Heytings
2021-03-20 12:37 ` Proposal to remove C-o binding [was: Suggested experimental test] Alan Mackenzie
2021-03-21 6:53 ` Suggested experimental test Lars Ingebrigtsen
2021-03-21 8:35 ` Alfred M. Szmidt
2021-03-21 13:20 ` Gregory Heytings
2021-03-21 18:16 ` Alfred M. Szmidt
2021-03-21 22:16 ` Gregory Heytings
2021-03-21 22:54 ` Alfred M. Szmidt
2021-03-21 23:05 ` Gregory Heytings
2021-03-21 23:13 ` Alfred M. Szmidt
2021-03-21 23:46 ` Gregory Heytings
2021-03-22 0:40 ` Alfred M. Szmidt
2021-03-22 10:05 ` Gregory Heytings
2021-03-22 18:14 ` Alfred M. Szmidt
2021-03-22 19:06 ` Gregory Heytings
2021-03-22 19:56 ` [External] : " Drew Adams
2021-03-22 21:03 ` Alfred M. Szmidt
2021-03-22 21:26 ` Drew Adams
2021-03-23 8:06 ` Alfred M. Szmidt
2021-03-22 21:08 ` Alfred M. Szmidt
2021-03-22 11:21 ` Jean Louis
2021-03-22 11:07 ` Jean Louis
2021-03-22 3:33 ` Eli Zaretskii
2021-03-22 10:05 ` Gregory Heytings
2021-03-22 11:37 ` Philip Kaludercic
2021-03-22 12:20 ` Gregory Heytings
2021-03-22 17:38 ` Eli Zaretskii
2021-03-22 17:48 ` Gregory Heytings
2021-03-22 18:11 ` Eli Zaretskii
2021-03-22 18:15 ` Alfred M. Szmidt
2021-03-22 18:14 ` Alfred M. Szmidt
2021-03-22 8:59 ` Rudolf Schlatte
2021-03-22 10:05 ` Gregory Heytings
2021-03-22 10:49 ` Jean Louis
2021-03-21 10:48 ` Gregory Heytings
2021-03-21 10:58 ` Sv: " arthur miller
2021-03-21 13:20 ` Gregory Heytings
2021-03-21 18:16 ` Sv: " Alfred M. Szmidt
2021-03-22 5:11 ` Richard Stallman
2021-03-22 10:24 ` Sv: " Jean Louis
2021-03-22 10:14 ` Jean Louis
2021-03-22 12:06 ` Lars Ingebrigtsen
2021-03-22 12:23 ` Gregory Heytings
2021-03-22 16:15 ` Jean Louis
2021-03-22 16:14 ` Jean Louis
2021-03-22 17:08 ` Gregory Heytings
2021-03-22 17:46 ` Alan Mackenzie
2021-03-22 17:59 ` Gregory Heytings
2021-03-22 18:23 ` Alfred M. Szmidt
2021-03-23 6:09 ` Richard Stallman
2021-03-22 18:03 ` Jean Louis
2021-03-22 17:20 ` Robin Tarsiger
2021-03-22 17:40 ` Eli Zaretskii
2021-03-22 17:55 ` Gregory Heytings
2021-03-22 18:13 ` Eli Zaretskii
2021-03-22 20:22 ` Gregory Heytings
2021-03-23 8:06 ` Eli Zaretskii
2021-03-23 14:15 ` Gregory Heytings
2021-03-23 14:37 ` Eli Zaretskii
2021-03-23 16:51 ` Gregory Heytings
2021-03-23 17:13 ` Eli Zaretskii
2021-03-23 18:08 ` Alfred M. Szmidt
2021-03-23 21:06 ` Gregory Heytings
2021-03-23 21:43 ` Alfred M. Szmidt
2021-03-23 21:57 ` Gregory Heytings
2021-03-23 22:08 ` Alfred M. Szmidt
2021-03-23 22:14 ` Gregory Heytings
2021-03-23 22:42 ` Alfred M. Szmidt
2021-03-23 23:05 ` Gregory Heytings
2021-03-24 5:15 ` Richard Stallman
2021-03-24 5:16 ` Richard Stallman
2021-03-24 6:39 ` Jean Louis
2021-03-24 6:32 ` Jean Louis
2021-03-24 6:10 ` Jean Louis
2021-03-22 18:17 ` Lars Ingebrigtsen
2021-03-22 18:50 ` Eli Zaretskii
2021-03-22 19:09 ` Lars Ingebrigtsen
2021-03-22 19:55 ` Lars Ingebrigtsen
2021-03-22 22:02 ` Stefan Kangas
2021-03-22 22:33 ` [External] : " Drew Adams
2021-03-22 23:28 ` Stefan Kangas
2021-03-22 22:44 ` Dmitry Gutov
2021-03-22 23:22 ` Stefan Kangas
2021-03-23 5:22 ` Jean Louis
2021-03-23 7:43 ` Eli Zaretskii
2021-03-23 12:28 ` Philip Kaludercic
2021-03-23 12:41 ` Eli Zaretskii
2021-03-23 13:09 ` Dmitry Gutov
2021-03-23 13:27 ` Philip Kaludercic
2021-03-23 14:00 ` Dmitry Gutov
2021-03-23 13:54 ` Eli Zaretskii
2021-03-23 17:04 ` Dmitry Gutov
2021-03-23 21:06 ` chad
2021-03-24 5:07 ` Jean Louis
2021-03-25 5:09 ` Richard Stallman
2021-03-23 6:12 ` Yuri Khan
2021-03-24 23:41 ` Dmitry Gutov
2021-03-25 6:12 ` Yuri Khan
2021-03-25 13:20 ` Dmitry Gutov
2021-03-25 14:30 ` Basil L. Contovounesios
2021-03-25 17:09 ` Dmitry Gutov
2021-03-25 18:59 ` Yuri Khan
2021-03-25 19:30 ` Yuri Khan
2021-03-25 21:11 ` Stefan Monnier
2021-03-25 23:54 ` Dmitry Gutov
2021-03-26 10:34 ` Stefan Kangas
2021-03-26 23:13 ` Dmitry Gutov
2021-03-26 23:34 ` Dmitry Gutov
2021-03-27 0:02 ` Stefan Monnier
2021-03-28 13:59 ` Dmitry Gutov
2021-03-22 20:22 ` Gregory Heytings
2021-03-22 20:36 ` Lars Ingebrigtsen
2021-03-22 21:03 ` Alfred M. Szmidt
2021-03-22 20:56 ` Thierry Volpiatto
2021-03-22 18:11 ` [EXTERNAL] " Stephan Mueller
2021-03-22 18:34 ` Lars Ingebrigtsen
2021-03-22 18:56 ` Eli Zaretskii
2021-03-22 19:13 ` Lars Ingebrigtsen
2021-03-22 19:19 ` Eli Zaretskii
2021-03-22 19:25 ` Lars Ingebrigtsen
2021-03-22 19:49 ` Stefan Monnier
2021-03-22 19:52 ` Lars Ingebrigtsen
2021-03-22 20:54 ` Stefan Monnier
2021-03-22 21:04 ` Lars Ingebrigtsen
2021-03-23 7:18 ` Eli Zaretskii
2021-03-22 19:21 ` chad
2021-03-22 19:26 ` Eli Zaretskii
2021-03-22 19:51 ` Stefan Monnier
2021-03-22 20:04 ` Eli Zaretskii
2021-03-22 20:11 ` Lars Ingebrigtsen
2021-03-22 20:16 ` Lars Ingebrigtsen
2021-03-23 7:04 ` Eli Zaretskii
2021-03-22 20:49 ` Stefan Monnier
2021-03-22 21:02 ` [External] : " Drew Adams
2021-03-23 7:09 ` Eli Zaretskii
2021-03-22 19:28 ` Lars Ingebrigtsen
2021-03-22 19:56 ` [External] : " Drew Adams
2021-03-22 20:56 ` Stefan Monnier
2021-03-22 21:19 ` Drew Adams
2021-03-22 20:22 ` Gregory Heytings
2021-03-23 8:09 ` Eli Zaretskii
2021-03-23 14:15 ` Gregory Heytings
2021-03-23 14:31 ` Eli Zaretskii
2021-03-23 17:21 ` Bob Rogers
2021-03-24 5:42 ` Jean Louis [this message]
2021-03-23 20:55 ` chad
2021-03-25 17:04 ` [EXTERNAL] " Stephan Mueller
2021-03-22 19:37 ` Stefan Monnier
2021-03-22 19:42 ` Dmitry Gutov
2021-03-22 20:33 ` Jose A. Ortega Ruiz
2021-03-22 18:42 ` Sean Whitton
-- strict thread matches above, loose matches on Subject: below --
2021-03-23 21:51 Paul W. Rankin via Emacs development discussions.
2021-03-24 8:34 ` Lars Ingebrigtsen
2021-03-24 8:51 ` tomas
2021-03-24 9:16 ` Paul W. Rankin via Emacs development discussions.
2021-03-24 9:22 ` tomas
2021-03-24 10:37 ` Eli Zaretskii
2021-03-24 11:13 ` tomas
2021-03-24 11:51 ` Jean Louis
2021-03-24 11:55 ` tomas
2021-03-25 5:14 ` Richard Stallman
2021-03-24 17:04 ` Eli Zaretskii
2021-03-24 17:19 ` tomas
2021-03-24 17:30 ` Dmitry Gutov
2021-03-24 20:08 ` tomas
2021-03-25 5:14 ` Richard Stallman
2021-03-25 5:48 ` Paul W. Rankin via Emacs development discussions.
2021-03-25 7:46 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YFrRUgVaTjZa3tsX@protected.localdomain \
--to=bugs@gnu.support \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.