emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to force redisplay?


From: François Pinard
Subject: Re: [O] How to force redisplay?
Date: Sun, 08 Jan 2012 09:59:14 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> address@hidden (François Pinard) writes:

>> The problem I observed is that the indentation is more to the left
>> than the "lefter" it may be.  So it has to be a display problem
>> somehow, I guess.  I wondered if there was some simple command to
>> force the display to be recomputed or adjusted.

> It wouldn't change anything: it failed once, it would fail again at
> redisplay.

Now using this command when the problem happens:


(defun fp-org-adjust-visual-margins ()
  "Recompute visual left margins, for when they seem incorrect."
  (interactive)
  (message "Adjusting visual margins...")
  (org-indent-add-properties (point-min) (point-max))
  (message "Adjusting visual margins...done"))


and it /does/ correct the display.

> I tried to reproduce the problem, but couldn't so far. If you happen to
> have a recipe to reproduce it, please let me know.

I cannot reproduce it either.  It just occurs, once in a while, I did
not find a pattern yet.

> Also, check if there isn't any additional fontification problem that
> might give a clue about the situation.

No, I did not observe any.


All summarized, I have an interim solution so I can continue to edit
comfortably when the display problem happens.  And if I can get a more
usable description of the problem, in a way that can be reproduced, I'll
surely share that description.

Thanks for caring! :-)

François




reply via email to

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