emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cl-defgeneric vs random funcall in project.el


From: Stefan Monnier
Subject: Re: cl-defgeneric vs random funcall in project.el
Date: Thu, 30 Jul 2015 17:26:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> FWIW, this sucks because this method won't be used in modes derived from
>> emacs-lisp-mode.
> If we *really* wanted to use the same mechanism, though, I think
> implementing &context (derived-p emacs-lisp-mode) is not impossible.

I think the syntax "&context (derived-p emacs-lisp-mode)" is impossible,
but indeed, something that behaves correctly is possible, maybe with
a syntax like "&context ((parent-modes) (includes emacs-lisp-mode))"
or "&context (major-mode (derived-mode-of emacs-lisp-mode))".


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]