emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Linus Arver <linusarver@gmail.com>
To: Darlan Cavalcante Moreira <darcamo@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: indentation for section headings vs bulleted lists
Date: Fri, 18 Feb 2011 18:46:57 -0800	[thread overview]
Message-ID: <20110219024657.GB5405@aether.rnxn4ps> (raw)
In-Reply-To: <4d5eb801.2945960a.2aa5.ffff83d7@mx.google.com>

On Fri, Feb 18, 2011 at 03:18:38PM -0300, Darlan Cavalcante Moreira wrote:
> 
> In fact, lists are indented like this, but indentation has meaning.
> 
> I remember some recent changes announced here in the mailing list to how
> lists are handled in org that made lists more powerful. It seems now that
> if some text is part or not of the list is controlled by
> indentation. Therefore, if you write
> #+begin_src org
> - blah blah blah blah
>   bleh bleh bleh bleh
> blih blih blih blih
> #+end_src
> then "bleh bleh bleh bleh" is part of the list (as if it were in the same
> line of "blah blah blah blah"), but not "blih blih blih blih". You can test
> this by exporting and seeing the result.
> 

I think I failed to explain the problem more accurately. In my original
post, I stated the following behavior:

* blah blah blah blah
  blah blah blah blah
  blah blah blah blah
** blah blah blah blah
   blah blah blah blah
   blah blah blah blah
- blah blah blah blah
blah blah blah blah
blah blah blah blah
 - blah blah blah blah
 blah blah blah blah
 blah blah blah blah

In the above example, there are *only* 4 physical lines of text. That
is, there are only 4 newline characters in the actual text file. The

#+STARTUP: indent

property, from what I understand, merely takes the 4 actual lines and
"soft wraps" them intelligently, so as to create a series of *fake*
newlines and indents, to give the illusion of multiple, neatly-indented
lines.

My problem was that org-mode handles section headings (*) properly, but
not bulleted list items (-) for some reason, choosing to indent on the
location of the bullet (-) itself, and not the beginning of the actual
leading text. I.e., instead of

 - blah blah blah blah    <--- a *single* line
 blah blah blah blah
 blah blah blah blah
   - blah blah blah blah  <--- another single line
   blah blah blah blah
   blah blah blah blah

I want org-mode to indent it like this:

 - blah blah blah blah
   blah blah blah blah
   blah blah blah blah
   - blah blah blah blah
     blah blah blah blah
     blah blah blah blah

Again, this is a soft wrap issue. I'll try to use the latest git version
of org-mode and see if that helps.

-Linus

      reply	other threads:[~2011-02-19  2:47 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
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 [this message]

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=20110219024657.GB5405@aether.rnxn4ps \
    --to=linusarver@gmail.com \
    --cc=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).