unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Yates <john@yates-sheets.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Daniele Nicolodi <daniele@grinta.net>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Major mode and implementation of expected editing facilities
Date: Tue, 28 May 2019 15:37:47 -0400	[thread overview]
Message-ID: <CAJnXXoh6bwdwoWcO=h0tuhqd_Gr-FkwH-6BmiAPxzoO5YRK_+w@mail.gmail.com> (raw)
In-Reply-To: <835zpu1ve2.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1628 bytes --]

On Tue, May 28, 2019 at 10:55 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> Given the above text, I'm not sure I understand what are you looking
> for.  Clearly, what specific keys a major mode can reasonably rebind
> depends on the mode and what it does, right?  IOW, it's your decision,
> as someone who knows what the mode does, and which of its commands
> could be usefully regarded as "generalizations" or "customizations" of
> those in the related modes.

What Daniele seeks makes eminent sense to me.

Designing a new mode is not easy, especially if one wants it to feel as
much like a natural extension of mainline emacs as possible.  One has
to develop the basic concept of the mode, decompose that envisioned
functionality into exposed operations consonant with the emacs mindset,
choose key bindings that will feel natural and inherit faces in a natural
manner.  (I am sure that there is more.  Those are simply the things that
come to mind as I compose this note.)

Those of us who have used emacs for years (decades?) and, further, used
many of its packages have distilled such wisdom.  Should we therefore
take the stance that we can offer no help towards such wisdom?  That there
is no substitute for paying one's dues and doing time in the emacs world?

If we are anxious to have new contributors who actually want to do a
craftsman-like job writing a new mode then we should do what we can to
help them along.  That we have not yet started writing down some of this
wisdom is no excuse not to start.  I am confident that beginning a chapter
on building a new mode would trigger much interesting discussion.

/john

[-- Attachment #2: Type: text/html, Size: 1846 bytes --]

  reply	other threads:[~2019-05-28 19:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27 22:14 Major mode and implementation of expected editing facilities Daniele Nicolodi
2019-05-28  2:43 ` Eli Zaretskii
2019-05-28  2:47   ` Daniele Nicolodi
2019-05-28  4:20     ` Eli Zaretskii
2019-05-28  4:40       ` Daniele Nicolodi
2019-05-28 14:55         ` Eli Zaretskii
2019-05-28 19:37           ` John Yates [this message]
2019-05-28 19:54             ` Daniele Nicolodi
2019-05-29  2:33             ` Eli Zaretskii
2019-05-29  4:11               ` Clément Pit-Claudel
2019-05-29  4:21                 ` Daniele Nicolodi
2019-05-29 14:34                 ` Eli Zaretskii
2019-05-29 15:35                   ` Clément Pit-Claudel
2019-05-29 15:08                 ` Dmitry Gutov
2019-05-29 15:35                   ` Clément Pit-Claudel
2019-05-29 19:54             ` Richard Stallman
2019-05-28 19:52           ` Daniele Nicolodi
2019-05-28 20:20             ` Noam Postavsky
2019-05-29  2:37               ` Eli Zaretskii
2019-05-29  2:36             ` Eli Zaretskii
2019-05-29  4:14         ` Clément Pit-Claudel
2019-05-29  4:17           ` Daniele Nicolodi

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='CAJnXXoh6bwdwoWcO=h0tuhqd_Gr-FkwH-6BmiAPxzoO5YRK_+w@mail.gmail.com' \
    --to=john@yates-sheets.org \
    --cc=daniele@grinta.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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 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).