[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extending define-derived-mode
From: |
Stefan Monnier |
Subject: |
Re: Extending define-derived-mode |
Date: |
Mon, 05 Jun 2023 11:17:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> But IIUC you're suggesting that this hook would only exist "when someone
>> defines a major mode with xxx-base-mode as parent", so it's
>> dynamic/conditional.
> IIUC you can add functions to a hook regardless whether it’s defined
> or not, so it should be fine?
The question is not whether the variable is `boundp` or not but whether
it's run or not. I think making it dynamic/conditional on the existence
of some other major mode that refers to it will likely cause surprises.
> BTW, I want to clarify one thing: how are we feeling about base modes?
> Are they fine? Are they staying?
Good question.
To me they're halfway between The Right Thing and Overkill :-(
Stefan
Re: Extending define-derived-mode, Yuan Fu, 2023/06/02