Hi, D <d.willi...@posteo.net> writes:
> 1) Wouldn't it be clearer to use defvar-local for > org-hide-leading-stars-before-indent-mode and replace the docstring with > something like "Holds the original value of `org-hide-leading-stars' > before Org indent." Yes, patch welcome. > 2) Considering that org-hide-leading-stars is global by default, > wouldn't it be even better to dispose of the temp variable entirely? > One could either use (kill-local-variable 'org-hide-leading-stars) or > (setq-local org-hide-leading-stars (default-value > 'org-hide-leading-stars)) for the same effect. IIUC, it would be "and", not "or": first use (setq-local org-hide-leading-stars (default-value 'org-hide-leading-stars)) to set org-hide-leading-stars to a temporary value *and* (kill-local-variable 'org-hide-leading-stars) to restore the global value. If you can make something that works, please send a patch. Thanks! -- Bastien