emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: pinard@iro.umontreal.ca (François Pinard)
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to force redisplay?
Date: Sun, 08 Jan 2012 09:59:14 -0500	[thread overview]
Message-ID: <87r4zaxmt9.fsf@iro.umontreal.ca> (raw)
In-Reply-To: <87d3autuma.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 08 Jan 2012 10:24:13 +0100")

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

> pinard@iro.umontreal.ca (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	other threads:[~2012-01-08 14:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 16:43 How to force redisplay? François Pinard
2012-01-06 18:45 ` Nicolas Goaziou
2012-01-06 20:17   ` François Pinard
2012-01-06 20:53     ` François Pinard
2012-01-08  9:24       ` Nicolas Goaziou
2012-01-08 14:59         ` François Pinard [this message]
2012-01-08 16:47           ` Nicolas Goaziou
2012-01-08 20:16             ` François Pinard
2012-01-09 17:54               ` Nicolas Goaziou
2012-01-09 19:01                 ` François Pinard
2012-01-06 22:51 ` François Pinard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4zaxmt9.fsf@iro.umontreal.ca \
    --to=pinard@iro.umontreal.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).