all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 46331@debbugs.gnu.org
Subject: bug#46331: provided-mode-derived-p doesn't work on aliases
Date: Sat, 6 Feb 2021 11:22:31 +0000	[thread overview]
Message-ID: <CAOnWdogYr+-N+adtAb63PWU+iNwPZfKMPyd1a92jwj+jmPs9Sw@mail.gmail.com> (raw)
In-Reply-To: <8735y9e9u9.fsf@gnus.org>

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

On Sat, 6 Feb 2021 at 11:04, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Reuben Thomas <rrt@sc3d.org> writes:
>
> > 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.
>
> Yup.  I've now changed the function to also work on MODE parameters that
> are function aliases.
>

Many thanks!

-- 
https://rrt.sc3d.org

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

  reply	other threads:[~2021-02-06 11:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOnWdogYr+-N+adtAb63PWU+iNwPZfKMPyd1a92jwj+jmPs9Sw@mail.gmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=46331@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rrt@sc3d.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.