> Thanks, but if we want to integrate major-mode-remap-alist better, I'd > rather we did that in some lower-level place, so that we wouldn't need > to sprinkle these alist-get calls all over Emacs. > > Also, if we do this, there will be no way for specifying a particular > mode in file-local variables. Do we really want that? > > Stefan, WDYT? I agree that we should try to keep it in "one place", but I don't think it can be done right now without some code reorganization :-( I can't wrap my head around what `hack-local-variables--find-variables` is supposed to do, but for the other part of the change, maybe the patch below is a good start? Stefan