Ruiyang Wu <ywwr...@gmail.com> writes: > I recently started to get the following warning from emacs when loading org > mode: > Warning (defvaralias): Overwriting value of ‘org-hide-block-startup’ by > aliasing to ‘org-cycle-hide-block-startup’ > > I have this in my init file: > (setq org-hide-block-startup t) > > I believe the value t is not preserved because in org.el, it first loads > org-cycle.el which assigns nil to org-cycle-hide-block-startup, and then > executes (defvaralias 'org-hide-block-startup 'org-cycle-hide-block-startup) > so the value of org-hide-block-startup is overwritten to nil. > > Some quick search on the internet seems to suggest that defvaralias should be > called first before giving org-cycle-hide-block-startup its default value. > (Cf. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=5950)
Thanks for reporting and for hunting down the cause! Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bfe253f7e -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>