unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode'
@ 2014-02-18 18:13 Drew Adams
  2014-02-19 14:25 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2014-02-18 18:13 UTC (permalink / raw)
  To: 16797

This is as much a question as a bug report, but this seems a better
place to ask it than emacs-devel@gnu.org:

Why is `emacs-lisp-mode' derived from `prog-mode' and not `lisp-mode'?

To test whether, e.g., the current buffer is one where you could
evaluate a Lisp sexp in it, you would need to test whether the current
mode is derived from one or the other of these two Lisp modes.

Seems like `lisp-mode' should in some sense "encompass"
`emacs-lisp-mode', and perhaps any other Lisp modes as well.

Feel free to close this, if it does not in fact report a bug.
But in that case I would like to know what the reason is.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2014-02-11 on ODIEONE
Bzr revision: 116410 lekktu@gmail.com-20140211204823-l9l2s6tktfitq266
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode'
  2014-02-18 18:13 bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode' Drew Adams
@ 2014-02-19 14:25 ` Stefan Monnier
  2020-08-12 22:11   ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2014-02-19 14:25 UTC (permalink / raw)
  To: Drew Adams; +Cc: 16797

> This is as much a question as a bug report, but this seems a better
> place to ask it than emacs-devel@gnu.org:
> Why is `emacs-lisp-mode' derived from `prog-mode' and not `lisp-mode'?

Hysterical raisins?

We could/should probably restructure it a bit, with a common ancestor
`lisp-mode' and then have scheme-mode, emacs-lisp-mode, and
common-lisp-mode derive from it.

Patch welcome (after the unfreeze),


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode'
  2014-02-19 14:25 ` Stefan Monnier
@ 2020-08-12 22:11   ` Stefan Kangas
  2021-07-15  5:00     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2020-08-12 22:11 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 16797

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> This is as much a question as a bug report, but this seems a better
>> place to ask it than emacs-devel@gnu.org:
>> Why is `emacs-lisp-mode' derived from `prog-mode' and not `lisp-mode'?
>
> Hysterical raisins?
>
> We could/should probably restructure it a bit, with a common ancestor
> `lisp-mode' and then have scheme-mode, emacs-lisp-mode, and
> common-lisp-mode derive from it.
>
> Patch welcome (after the unfreeze),

Is this still relevant now that emacs-lisp-mode inherits lisp-data-mode
(which inherits prog-mode)?

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode'
  2020-08-12 22:11   ` Stefan Kangas
@ 2021-07-15  5:00     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15  5:00 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 16797, Stefan Monnier

Stefan Kangas <stefan@marxist.se> writes:

>> We could/should probably restructure it a bit, with a common ancestor
>> `lisp-mode' and then have scheme-mode, emacs-lisp-mode, and
>> common-lisp-mode derive from it.
>>
>> Patch welcome (after the unfreeze),
>
> Is this still relevant now that emacs-lisp-mode inherits lisp-data-mode
> (which inherits prog-mode)?

No, I don't think so -- especially since we recently decided that
`lisp-mode' was really for Common Lisp.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-15  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 18:13 bug#16797: 24.3.50; `emacs-lisp-mode' does not derive from `lisp-mode' Drew Adams
2014-02-19 14:25 ` Stefan Monnier
2020-08-12 22:11   ` Stefan Kangas
2021-07-15  5:00     ` Lars Ingebrigtsen

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).