[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated
From: |
Bastien |
Subject: |
Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated |
Date: |
Thu, 16 Jan 2014 01:19:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> 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
- [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Bastien, 2014/01/14
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Nicolas Goaziou, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Bastien, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Nicolas Goaziou, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Bastien, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Bastien, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated, Nicolas Goaziou, 2014/01/15
- Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated,
Bastien <=