Nicolas Goaziou <n.goaz...@gmail.com> writes:

>   (defun org-mode-restart ()
>     (interactive)
>     (let ((indent-status (org-bound-and-true-p org-indent-mode)))
>       (funcall major-mode)
>       (hack-local-variables)
>       (when (and indent-status (not (org-bound-and-true-p org-indent-mode)))
>         (org-indent-mode -1)))
>     (message "%s restarted" major-mode))
>
> Still not pretty, but a bit better, IMO.

Definitely better, I applied this.

> Also, there's a dangling (defvar org-indent-mode nil) in org.el that
> looks suspicious. I don't think we need it if we use
> `org-bound-and-true-p' whenever we need to check for `org-indent-mode'
> value.

Indeed, I removed this.

Thanks!

-- 
 Bastien

Reply via email to