> On Nov 22, 2022, at 6:46 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote: > >> Thanks for that detailed explanation :-) >> >> It seems the current modeâs after-hook is ran the very last. So it might be >> a good place to call the fallback major mode. The call to run-hooks in >> a major mode invocation command is outside the scope delay-mode-hooks, so >> simply calling the fallback major mode should be fine? > > I think even cleaner is if the dispatch can happen before we even call > `kill-all-local-variables`. > > That's what `tex-mode` does (tho it gets there in a roundabout way > because I didn't want to change `define-derived-mode`). > > > Stefan > Yes, itâs much cleaner. If we donât care too much about using advice in our source. Iâll do that instead. Yuan
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4