unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: thibaut.verron@gmail.com
Cc: dgutov@yandex.ru, emacs-devel@gnu.org
Subject: Re: Standardizing more key bindings?
Date: Sat, 03 Oct 2020 23:39:47 -0400	[thread overview]
Message-ID: <E1kOusF-0004ji-VC@fencepost.gnu.org> (raw)
In-Reply-To: <CAFsi02SNzLQVDkVjzUZTtocPA9bd3PAdF4P5XR5HM7wdUPJeRQ@mail.gmail.com> (message from Thibaut Verron on Fri, 2 Oct 2020 08:26:14 +0200)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > The idea of having one single keymap to implement them presumes that
  > > any given binding is implemented by the same command in all these modes.
  > > Is that true?  I doubt it.

  > That is one possibility suggested in my original message. To have one
  > single entry point for those commands, which then calls functions
  > defined by the mode, similar to how indentation works.

We could implement it that way, but it may not be the best way.  There
is generally no advantage in defining a command simply to call a
variable and have modes change the variable instead of the key's
binding.

Possible drawbacks include:

* It is extra work (even if not very hard work).  It is extra churn.

* It means the doc string can't be adapted for a specific mode.

* It means that a specific mode can't add features to the command.

I set up function variables for indentation operations because they
are _not_ equivalent to the user-level commands.  Rather, they are
lower-level operations, and some of the user-level commands call them
multiple times.

These variables made it possible to have indentation commands which
did nontrivial work in a mode-independent way by calling the
variables' values.

However, over the years, some modes needed to replace the generic
indentation commands with specific ones.

Does this apply to sending code to an interpreter?  I don't know.
Perhaps there is some sub-operation for which it would be nice to
define such a mode-set variable.  But that is another issue.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





  parent reply	other threads:[~2020-10-04  3:39 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-27  9:31 Standardizing more key bindings? Thibaut Verron
2020-09-27 15:57 ` Stefan Monnier
2020-09-28  3:44 ` Richard Stallman
2020-09-28  4:38   ` Thibaut Verron
2020-09-28  7:39     ` Thibaut Verron
2020-09-29  3:30       ` Richard Stallman
2020-09-29  5:07         ` Thibaut Verron
2020-09-29 10:36           ` Vasilij Schneidermann
2020-10-01  4:09           ` Richard Stallman
2020-10-01  5:20             ` Thibaut Verron
2020-09-29 21:56         ` Dmitry Gutov
2020-11-01  4:27           ` Richard Stallman
2020-11-01  6:56             ` References to "REPL" from past Jean Louis
2020-11-01 13:51             ` Standardizing more key bindings? Stefan Monnier
2020-11-02  5:41               ` Richard Stallman
2020-11-02  6:14                 ` Yuri Khan
2020-11-02  8:08                   ` tomas
2020-11-02  9:50                   ` Dmitry Gutov
2020-11-02 11:40                     ` Python REPL using standard library functions Yuri Khan
2020-11-02 22:46                       ` Dmitry Gutov
2020-11-01 21:35             ` Standardizing more key bindings? Dmitry Gutov
2020-11-01 22:27               ` Drew Adams
2020-11-02  5:46               ` Richard Stallman
2020-09-29 21:58 ` Dmitry Gutov
2020-09-30  6:08   ` Thibaut Verron
2020-09-30 16:58     ` Opening Up More Keymaps " T.V Raman
2020-09-30 17:29       ` Thibaut Verron
2020-09-30 18:12         ` Robert Pluim
2020-09-30 18:16       ` Stefan Monnier
2020-09-30 18:35         ` T.V Raman
2020-09-30 18:41           ` Robert Pluim
2020-09-30 19:54           ` Stefan Monnier
2020-09-30 19:58             ` T.V Raman
2020-09-30 20:00               ` Noam Postavsky
2020-09-30 20:03                 ` T.V Raman
2020-09-30 21:00                   ` chad
2020-09-30 21:34                     ` T.V Raman
2020-09-30 20:45               ` Stefan Monnier
2020-09-30 20:51                 ` T.V Raman
2020-09-30 21:13                 ` Gregory Heytings via Emacs development discussions.
2020-09-30 21:19                   ` Stefan Monnier
2020-09-30 21:37                     ` T.V Raman
2020-09-30 21:44                       ` Stefan Monnier
2020-09-30 23:07                         ` T.V Raman
2020-10-01  2:35                 ` Eli Zaretskii
2020-10-01  3:27                   ` Stefan Monnier
2020-10-01 12:38                   ` Ergus
2020-10-01 14:17                     ` Stefan Kangas
2020-10-01 14:45                       ` Caio Henrique
2020-10-02  3:54                       ` Richard Stallman
2020-10-02 10:43                         ` Ergus
2020-10-04 19:34                           ` Juri Linkov
2020-10-02  3:49                   ` Richard Stallman
2020-10-02  6:56                     ` Eli Zaretskii
2020-10-02 11:34                       ` Ergus
2020-10-02 12:26                         ` Eli Zaretskii
2020-10-04  3:38                       ` Richard Stallman
2020-10-04 10:38                         ` Thibaut Verron
2020-10-04 13:46                           ` Alfred M. Szmidt
2020-10-04 16:24                             ` Thibaut Verron
2020-10-04 17:00                               ` Alfred M. Szmidt
2020-10-04 17:32                                 ` Thibaut Verron
2020-10-04 17:46                                   ` Alfred M. Szmidt
2020-10-05  3:11                                     ` Richard Stallman
2020-10-06  8:59                                       ` Lars Brinkhoff
2020-10-04 17:46                               ` Alfred M. Szmidt
2020-10-05  3:13                           ` Richard Stallman
2020-10-04 14:10                       ` Howard Melman
2020-10-02  3:45     ` Richard Stallman
2020-10-02  6:26       ` Thibaut Verron
2020-10-04  3:39         ` Richard Stallman
2020-10-04  3:39         ` Richard Stallman [this message]
2020-10-02  6:52       ` Eli Zaretskii
2020-10-02 14:00         ` Stefan Monnier
2020-10-04  3:38         ` Richard Stallman
2020-10-04  7:16           ` Eli Zaretskii
2020-10-05  3:14             ` Richard Stallman
2020-10-02 13:56       ` Stefan Monnier
2020-10-03  2:57         ` Richard Stallman
2020-10-06 12:53 ` Nikolay Kudryavtsev
2020-10-06 13:27   ` Stefan Monnier
2020-10-06 14:24     ` Nikolay Kudryavtsev
2020-10-06 14:43       ` Stefan Monnier
2020-10-08  9:40         ` Nikolay Kudryavtsev
2020-10-07  4:19   ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2020-09-27 21:38 yarnton--- via Emacs development discussions.

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1kOusF-0004ji-VC@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=thibaut.verron@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).