emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas <n.goaziou@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Linus Arver <linusarver@gmail.com>,
	emacs-orgmode@gnu.org, Bastien <bastien.guerry@wikimedia.fr>
Subject: Re: indentation for section headings vs bulleted lists
Date: Sun, 20 Feb 2011 14:27:29 +0100	[thread overview]
Message-ID: <878vxazvi6.fsf@gmail.com> (raw)
In-Reply-To: <C066F2AA-7750-482F-8825-46B37BAACA81@gmail.com> (Carsten Dominik's message of "Sun, 20 Feb 2011 13:39:20 +0100")

Hello,

Carsten Dominik <carsten.dominik@gmail.com> writes:

> while it might be posible to add additional line-prefix stuff to plain
> lists, you need to be careful about performance.

Yes, this is my main concern actually. When I speak about a "decent"
solution, I'm really thinking about a "sufficiently reactive" one,
provided such a thing exists.

As far as I can tell, line-prefix is fine as it is. Lists just need to
take it as real indentation before processing. Alas, wrap-prefix is the
real problem.

A solution would be to distinguish if org-indent-refresh-section is
called with point in a list or not. In the former case, it would skip
lists when changing warp-prefix in the section. In the latter situation,
it would only set warp-prefix for the list at point.

But then, hooks like org-after-demote-entry-hook would need to call
org-indent-refresh-section with an argument telling it to redefine
warp-prefix for everything in section, lists included. After all, a
small delay is acceptable for interactive use.

Does it sound "decent"?


Regards,

-- 
Nicolas

  reply	other threads:[~2011-02-20 13:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18  6:39 indentation for section headings vs bulleted lists Linus Arver
2011-02-18  8:52 ` Bastien
2011-02-19  2:34   ` Linus Arver
2011-02-19  9:35     ` Bastien
2011-02-20  7:22       ` Linus Arver
2011-02-20 12:19         ` Nicolas
2011-02-20 12:39           ` Carsten Dominik
2011-02-20 13:27             ` Nicolas [this message]
2011-02-20 19:51           ` Linus Arver
2011-02-20 23:26             ` [PATCH] " Nicolas
2011-02-21  1:04               ` Linus Arver
2011-02-21 10:59                 ` Giovanni Ridolfi
2011-02-21 17:32                   ` Nicolas
2011-02-18 18:18 ` Darlan Cavalcante Moreira
2011-02-19  2:46   ` Linus Arver

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=878vxazvi6.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=linusarver@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).