Ihor Radchenko <yanta...@posteo.net> writes: > Thierry Volpiatto <thie...@posteo.net> writes: > >> I thought I have desactived org-persist for good by advicing ... >> ...I finally found how to disable this >> org-persist annoyance by advicing a bunch of functions to 'ignore and >> disabling some hooks. > > As it usually goes, advicing functions comes at your own risk. So, no > wonder you encountered problems.
No. I hardly see how advicing functions with :override 'ignore may delete a whole directory contents of lisp files, so please do not underestimate this. >> IIRC this have been already reported and requested in the past to >> provide an easy way to disable this evil thing, but it seems it is >> always here, thus now it may corrupt elisp files unrelated to org. > > Yes, and, as I explained in the past, this is necessary for org mode to > maintain > cache. See > https://list.orgmode.org/orgmode/1158097067.265983.1670026787...@mail1.libero.it/ I know this thread, I even posted how to disable org-persist at the time, but it seems you reinforced the code to prevent this. Also this doesn't explain why a whole lisp directory was deleted. This after restarting emacs after having deleted org-persist directory or maybe adding -x perm to it (don't remember): thierry@IPad-S340:~/elisp/emacs-config$ ls thierry@IPad-S340:~/elisp/emacs-config$ git status Sur la branche main Votre branche est en avance sur 'origin/main' de 9 commits. (utilisez "git push" pour publier vos commits locaux) Modifications qui ne seront pas validées : (utilisez "git add/rm <fichier>..." pour mettre à jour ce qui sera validé) (utilisez "git restore <fichier>..." pour annuler les modifications dans le répertoire de travail) supprimé : config-w3m.el supprimé : describe-variable.el supprimé : dired-extension.el supprimé : early-init.el supprimé : emms-config.el supprimé : gnus-config.el supprimé : init-helm.el supprimé : init.el supprimé : ledger-config.el supprimé : mail-config.el supprimé : org-config.el supprimé : tv-byzanz.el supprimé : tv-save-place.el supprimé : tv-utils.el supprimé : wttr-weather.el aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a") thierry@IPad-S340:~/elisp/emacs-config$ git restore *.el thierry@IPad-S340:~/elisp/emacs-config$ ls config-w3m.el dired-extension.el emms-config.el init.el ledger-config.el org-config.el tv-save-place.el wttr-weather.el describe-variable.el early-init.el gnus-config.el init-helm.el mail-config.el tv-byzanz.el tv-utils.el > The best you can do is setting org-element-cache-persistent to > nil. Then, Org mode will not create cache as frequently. But you cannot > disable caching completely. Cache is necessary for some features to operate. Which features? > Canceled. > > P.S. I am confused why multiple people are asking to disable cache. For a good reason: People generally don't like things that write to their disk in their back. > Org has been creating ltximg directory since forever and nobody ever > asked to "disable" that one. I never see this directory. -- Thierry