emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG, PATCH] org-indent-mode not correctly deactivated
@ 2014-01-14 16:00 Bastien
  2014-01-15 12:56 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-01-14 16:00 UTC (permalink / raw)
  To: emacs-orgmode

With a file like

,----
| #+STARTUP: indent
| 
| * Heading
| ** Subheading
`----

org-mode will correctly use org-indent-mode when displaying it.

Now edit the file to deactivate org-indent:

,----
| #+STARTUP: noindent
| 
| * Heading
| ** Subheading
`----

Go to #+STARTUP and hit C-c C-c : org-indent-mode will not be
activated, but it will not be properly deactivated, leaving a
confusing whitespace before indented headlines.

The attached patch fixes the problem, but it is wrong, because it
"actively" deactivates org-indent-mode each time a buffer is not
using org-indent-mode, in sessions where org-indent-mode has been
used at least once.

I could not come up with a better fix -- Nicolas, Carsten, do
you have an idea on how to fix this?

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-16  0:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 16:00 [BUG, PATCH] org-indent-mode not correctly deactivated Bastien
2014-01-15 12:56 ` Nicolas Goaziou
2014-01-15 16:34   ` Bastien
2014-01-15 16:44     ` Nicolas Goaziou
2014-01-15 16:53       ` Bastien
2014-01-15 16:56         ` Bastien
2014-01-15 21:26         ` Nicolas Goaziou
2014-01-16  0:19           ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).