unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46331: provided-mode-derived-p doesn't work on aliases
@ 2021-02-05 17:13 Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-02-06 11:04 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-02-05 17:13 UTC (permalink / raw)
  To: 46331

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

javascript-mode is an alias for js-mode, and some third-party modes (e.g.
json-mode) derive from it.

(provided-mode-derived-p 'js-mode 'prog-mode) == t

but

(provided-mode-derived-p 'javascript-mode 'prog-mode) == nil

Hence in json-mode, (derived-mode-p 'prog-mode) evaluates to nil, which
seems unfortunate.

-- 
https://rrt.sc3d.org

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

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

end of thread, other threads:[~2021-02-06 12:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05 17:13 bug#46331: provided-mode-derived-p doesn't work on aliases Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 11:04 ` Lars Ingebrigtsen
2021-02-06 11:22   ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 11:27     ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 11:31       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 11:32         ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 11:39           ` Lars Ingebrigtsen
2021-02-06 11:41             ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-06 12:54               ` Lars Ingebrigtsen
2021-02-06 11:37       ` 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).