unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Phil Hagelberg <phil@hagelb.org>
Cc: 49278@debbugs.gnu.org
Subject: bug#49278: 28.0.50; Lisp Mode is for Common Lisp
Date: Wed, 30 Jun 2021 10:44:22 +0100	[thread overview]
Message-ID: <CALDnm53tk3z_LD6E_B6tuEaMofhvq2g2NTO7EWs4Xt6dWONenw@mail.gmail.com> (raw)
In-Reply-To: <87eeckdn9n.fsf@whirlwind>

On Wed, Jun 30, 2021 at 4:51 AM Phil Hagelberg <phil@hagelb.org> wrote:
>
> > In addition, there is in Emacs 27.1 a new lisp-data-mode.  That is
> > useful for defining using define-derived-mode to make Lisp-like major
> > modes derived from commonly found Lisp-style functionality such as
> > parenthesis-matching syntax tables and such.
>
> I don't think this is a very good argument; as the author of a major
> mode for a lisp language, it never would have occurred to me to even
> look at lisp-data-mode because its name indicates that it's not intended
> for use writing programs. Yes, I know code is data, etc, but this name
> still strongly implies a different use.

Maybe you were using an old Emacs, else reading  the manual at
"Example modes" would give you an example. And if you know code
is data in Lisp, chances are other Lisp enthusiasts also know that.
The manual reference isn't much, but it's not like Lisp is the biggest
thing out there anyway, so I don't know if a full section on this base
mode is worth it.

But if the name is bugging you, Stefan once proposed "lispish-mode".
I think it's very slightly silly, and the current name is accurate in meaning,
but we could make a snazzier alias.

> If the docstring for lisp-mode is to be changed, (rather than adding a
> common-lisp-mode for common lisp like they should have done at the
> outset)

This is a tangent: but the outset was probably before Common Lisp
was a thing.  The first VCS-checked version of that file is from 1991,
but I suspect it was around for much longer.  At the time, people were
really trying to kill off their own Lisps and meeting expensively in committees
to converge into a shiny new language.  So Common Lisp mode was really
to become "the Lisp".

> hen it would be better if a replacement mode were introduced
> which other lisp major modes could derive from. Otherwise there's no way
> to enable paredit-mode (for instance) across all lisps. Deriving off
> prog-mode isn't a very good solution there.

Yes, this is why the prescription is to derive from lisp-data-mode.  And
you can (add-hook 'lisp-data-mode 'paredit-mode).

If you want to make scheme mode and clojure mode and such
derive from lisp-data-mode, it's probably not very hard: patches
welcome.

But here I'm just correcting a bug in the documentation.

João





  reply	other threads:[~2021-06-30  9:44 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-29 18:06 bug#49278: 28.0.50; Lisp Mode is for Common Lisp João Távora
2021-06-29 18:16 ` Eli Zaretskii
2021-06-29 18:25   ` João Távora
2021-06-30 12:35     ` Eli Zaretskii
2021-06-30 12:45       ` João Távora
2021-06-29 20:46   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-29 20:55     ` João Távora
2021-06-29 22:59       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-30 12:47         ` Eli Zaretskii
2021-06-30 12:37     ` Eli Zaretskii
2021-06-30 13:03       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-30 13:21         ` João Távora
2021-06-30 13:29         ` Eli Zaretskii
2021-06-30 13:32           ` João Távora
2021-06-30 13:51             ` Eli Zaretskii
2021-06-30 14:32               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-30 14:50                 ` João Távora
2021-06-30 15:54                   ` Eli Zaretskii
2021-06-30 16:02                     ` João Távora
2021-06-30 15:52                 ` Eli Zaretskii
2021-06-30 16:37                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-30 16:47                     ` Eli Zaretskii
2021-06-30 16:50                       ` João Távora
2021-06-30 16:55                         ` Eli Zaretskii
2021-06-30 16:58                           ` João Távora
2021-06-30 14:54               ` João Távora
2021-06-30 15:55                 ` Eli Zaretskii
2021-06-30 15:58                   ` João Távora
2021-06-30 16:49                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-30  3:50 ` Phil Hagelberg
2021-06-30  9:44   ` João Távora [this message]
2021-09-24 23:01 ` Stefan Kangas
2021-09-24 23:23   ` João Távora
2021-09-25  0:22     ` Stefan Kangas
2021-09-25  1:26       ` bug#49278: [External] : " Drew Adams
2021-09-25  1:35       ` Lars Ingebrigtsen
2021-09-25  6:42       ` Eli Zaretskii
2021-09-25  1:13     ` bug#49278: [External] : " Drew Adams
2021-09-25  9:02       ` João Távora
2021-09-25 16:03         ` Drew Adams
2021-09-25 16:43           ` Stefan Kangas
2021-09-25 17:24             ` Drew Adams
2021-09-27 20:10           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 22:05             ` Drew Adams
2021-09-27 22:25               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 23:24                 ` Drew Adams
2021-09-27 23:36                   ` João Távora
2021-09-28  2:17                     ` Drew Adams
2021-09-28  2:06                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-28  2:31                     ` Drew Adams
2021-09-28  2:52                       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-27 14:48         ` Jean Louis

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=CALDnm53tk3z_LD6E_B6tuEaMofhvq2g2NTO7EWs4Xt6dWONenw@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=49278@debbugs.gnu.org \
    --cc=phil@hagelb.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).