Hi Arash, >>>>> Arash Esbati <[email protected]> writes: > Thanks for raising this issue. IIUC this is due this line of code in > tex-site.el.in: > ;;; Ensure that loading the autoloads file also loads this file. > ;;;###autoload (require 'tex-site) > So this effect isn't limited to a site-wide installation, but to every > ELPA installation?
Yes. However, I don't think it is a serious issue for usual (personal) ELPA installation because users can easily uninstall AUCTeX in that case. >> Should we arrange the main branch so that (unload-feature 'tex-site) >> works for site-wide ELPA AUCTeX installation as documented? Or should we >> announce other way? (To cusomize `TeX-modes' to nil? To add '(auctex >> nil)' to `package-load-list'? Or something else? > Do you have any suggestion how to fix this? I think the cleanest solution is to add '(auctex nil)' to `package-load-list'. This doesn't register unused autloads for the first place. (I haven't tested yet, but I suppose that the code needs to be in early init file, right?) However, I don't have strong preference about it. >> Maybe to have both (unload-feature 'autex-autoloads') and >> (unload-feature 'tex-site) ?) > This seems to be easiest way; I suspect the > (unload-feature '<pkg-name>-autoloads) > applies to every package installed from ELPA? It seems so: ,----[ (elisp) Packaging Basics ] | Emacs then searches every Lisp file in the content directory for | autoload magic comments (*note Autoload::). These autoload definitions | are saved to a file named ‘NAME-autoloads.el’ in the content directory. | They are typically used to autoload the principal user commands defined | in the package, but they can also perform other tasks, such as adding an | element to ‘auto-mode-alist’ (*note Auto Major Mode::). `---- Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
