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 15:16:58 -0500	[thread overview]
Message-ID: <87mx9yx83p.fsf@iro.umontreal.ca> (raw)
In-Reply-To: <8762gmta2r.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 08 Jan 2012 17:47:56 +0100")

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

> Hello,

Hi, Nicolas!

> Well, that command already exists: `org-indent-indent-buffer'.

Thanks for this information.  (This replies to the question in my
original message: is there a command to correct the indention?)

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

> Just a few more questions. Does it happen:
> - while you're typing on the incorrect line?
> - while you're typing on another line?
> - just after opening the buffer for the first time?
> - just after opening the buffer for the first time, while you're typing
>   something in it?

Playing a bit to reply to your questions, I think I just found a way to
reproduce the problem dependably.  If on a header line of a section
having contents, I do something like:

   C-e RET *** Allo RET

(well, merely choose the number of asterisks so the problem shows!).
The "Allo" line will then get intended according to the number of stars
(which is very convenient), but the following contents lines keep their
original visual indentation, which might happen to be incorrect.

> Also, what happens when you type something on the faulty line? The
> indentation doesn't change?

No, the indentation does not change.

My usual work around was to move up to the header, shift right
(indentation gets fixed), then shift left (to counteract).

François

  reply	other threads:[~2012-01-08 20:17 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
2012-01-08 16:47           ` Nicolas Goaziou
2012-01-08 20:16             ` François Pinard [this message]
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=87mx9yx83p.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).