|
From: | Phil Sainty |
Subject: | bug#35351: 27.0.50; Enable derived modes to run their own very-early 'change-major-mode-hook' code |
Date: | Sun, 21 Apr 2019 14:45:15 +1200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
I forgot to mention the other hack solution which occurred to me, which is for the library which defines the major mode to add its own before-advice for that major mode function. This also seems a bit ugly to me -- but maybe not quite as ugly as using a 'fake parent' mode. It's a slightly more flexible solution, at any rate. -Phil
[Prev in Thread] | Current Thread | [Next in Thread] |