[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: org-indent-mode and visual-line-mode

From: Carsten Dominik
Subject: Re: [Orgmode] Re: org-indent-mode and visual-line-mode
Date: Fri, 20 Nov 2009 14:54:31 +0100

Hi Matt,

can you please try the following patch?

diff --git a/lisp/org-indent.el b/lisp/org-indent.el
index afce59f..53db9be 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -106,8 +106,8 @@ this variable can be set to nil to get rid of the timer."
   ;; Initialize the indentation and star vectors
   (setq org-indent-strings (make-vector (1+ org-indent-max) nil))
   (setq org-indent-stars (make-vector (1+ org-indent-max) nil))
-  (aset org-indent-strings 0 "")
-  (aset org-indent-stars 0 "")
+  (aset org-indent-strings 0 nil)
+  (aset org-indent-stars 0 nil)
   (loop for i from 1 to org-indent-max do
        (aset org-indent-strings i

Also, you should have (I believe you do)

   (setq org-startup-truncated nil)

Let me know if this solves the problem

- Carsten

On Nov 20, 2009, at 2:03 PM, Matt Price wrote:

On Fri, 2009-11-20 at 08:28 +0100, Carsten Dominik wrote:

Hi Matt,

personally, I never use visual-line-mode, mainly because cursor motion
becomes unpredictable to me (down doe not get me into the next line,
so for example keyboard macros are much harder to make to consistently).

That said, I would expect that what you are describing should work,
and my memory is also that it used to work - after all, I implemented
not only line-prefix, but also wrap-prefix in org-indent-mode.  I am
quite sure that this used to work.

I am not sure how to proceed.  Someone would have to bisect Emacs to
find which commit changed this behavior.   Or maybe at lease someone
can try with a vanilla 23.1 Emacs? If it works there, we might have
enough to file a bug report.

I just tried it on the ubuntu karmic emacs23 packages.  I get the same
behaviour i was seeing before. In case my description is misleading, i
just made a couple of screenshots and posted them here:
one shows some quick text when indent-mode is enabled, the other shows
it with indent-mode disabled.

anyway if you have any ideas how i might help that'd be great --
bisecting the code is probably beyond what i can easily do but i could
try to dig around a bit somehow.

thanks - i appreciate how much effort you put into this carsten! -


Matt Price
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]