unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Dmitry Gutov <dgutov@yandex.ru>, Eli Zaretskii <eliz@gnu.org>
Cc: stefan@marxist.se, emacs-devel@gnu.org
Subject: RE: Lift {global,local}-key-binding to Lisp
Date: Fri, 15 Jan 2021 10:03:06 -0800 (PST)	[thread overview]
Message-ID: <fa327660-bd0c-44c1-90e8-71bac18a353b@default> (raw)
In-Reply-To: <11389fbf-d937-e081-0a4a-bcb149defdf5@yandex.ru>

> >> Consider that, when a piece of code is implemented in Lisp, it's easier
> >> for us "mere mortals" to find it, read, understand and debug it. Even
> >> more so when it comes to people outside of emacs-devel.
> >>
> >> So as a result you should end up answering fewer questions about it.
> >
> > I invite you to have a look at the C implementation of these two
> > functions, and then explain to me how the original code was any harder
> > for "mere mortals" to understand, let alone trigger some questions.
> 
> It is, though of course the function is short.
> 
> As such, the arguments both for and against this change are relatively
> weak. Surely you won't have many troubles because of this move either.
> So both you and others in this thread are really arguing on principle.

There's also the consideration that many users will
not have bothered to download the C source code.

`C-h f' describes a function, and gives you a link
to its source definition.  (Use the source, Luke!)

But that link is less useful if the source is C code,
in two cases: (1) the user doesn't grok C well, (2)
the user doesn't have the C sources.

Sure, anyone can get to the source code for any
particular bit of Emacs, e.g., using the GIT mirror
on the web.  But having a Lisp definition available
locally is a heck of a lot more user-friendly than
jumping through extra hoops to check C code.

And this particular argument, at least, is even
stronger in the case of simple, easy-to-read C code.
In that case, both the Lisp and C code are clear,
but missing C code locally is a particular bother.

Just one consideration to add to the discussion.
Not necessarily the most important one, but one that
directly affects users.



  parent reply	other threads:[~2021-01-15 18:03 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-13 19:26 Lift {global,local}-key-binding to Lisp Eli Zaretskii
2021-01-14 19:24 ` Stefan Kangas
2021-01-14 20:10   ` Eli Zaretskii
2021-01-14 20:24     ` Eli Zaretskii
2021-01-15  1:58     ` Leo Liu
2021-01-15  4:16     ` Óscar Fuentes
2021-01-15  7:42       ` Eli Zaretskii
2021-01-21 16:03     ` Stefan Kangas
2021-01-21 16:59       ` [External] : " Drew Adams
2021-01-21 17:50         ` Dmitry Gutov
2021-01-21 18:16           ` Drew Adams
2021-01-21 18:58             ` Dmitry Gutov
2021-01-21 19:59       ` Eli Zaretskii
2021-01-14 21:03   ` Andrea Corallo via Emacs development discussions.
2021-01-15  7:45     ` Eli Zaretskii
2021-01-15 12:09 ` Dmitry Gutov
2021-01-15 12:18   ` Eli Zaretskii
2021-01-15 13:24     ` Dmitry Gutov
2021-01-15 13:45       ` Eli Zaretskii
2021-01-15 18:09         ` Dmitry Gutov
2021-01-17 14:27           ` Christopher Miles
2021-01-15 18:03       ` Drew Adams [this message]
2021-01-16  0:51   ` Leo Liu
2021-01-17 14:33     ` Christopher Miles
2021-01-17 15:08       ` Eli Zaretskii
2021-01-18  3:29         ` Christopher Miles
2021-01-18 16:43           ` Eli Zaretskii
2021-01-17 16:10       ` Basil L. Contovounesios

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=fa327660-bd0c-44c1-90e8-71bac18a353b@default \
    --to=drew.adams@oracle.com \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stefan@marxist.se \
    /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).