emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-list-indent-offset only works partially
Date: Wed, 19 Oct 2011 08:57:02 +0200	[thread overview]
Message-ID: <CALn3zojePV=E_NFDfH_4NjHUB1e6UTAvzn914p9MggQ3FBDv8w@mail.gmail.com> (raw)
In-Reply-To: <CALn3zoguD+OF3JLrxXg0ni3Yb+fDo-=gns3i-_x2viJr8gQAhg@mail.gmail.com>

Hi Nicolas

Now I understand that

- 1 :: item 1
[TAB]- item 2

works as expected, when assuming that you don't want the space after
the "-" to change the indentation similar to Emacs Electric C but want
to keep only TAB, C-c and the modified cursor keys to change the
indentation. BTW, were there considerations or discussions about
"electric indentation" for lists (space after the "-")?

So, for what I want to do I have to use

- 1 :: item 1
-[TAB]item 2

Is the following also doing what is expected?

- 1 :: item 1
[TAB]-[TAB][TAB]item 2

Michael

On Tue, Oct 18, 2011 at 11:33, Michael Brand <michael.ch.brand@gmail.com> wrote:
> Hi all
>
> I would like to suggest to treat this together with a similar issue:
>
> 1- Run "emacs -q"
> 2- M-x org-mode
> 3- open /tmp/t.org
> 4- Write the following
> - 1 :: item 1
> [TAB]- item 2
>
> When you press [TAB], "- item 2" is indented 7 spaces right. But I
> would expect it to be indented the same 2 spaces as if over the item 2
> line you do
>
> 5- M-left
> 6- M-right
>
> Michael
>
> On Tue, Oct 18, 2011 at 10:53, Sébastien Delafond <sdelafond@gmail.com> wrote:
>> Hello,
>>
>> from Debian bug #645214 (http://bugs.debian.org/645214):
>>
>>  org-mode doesn't seems to honour correctly the org-list-indent-offset
>>  variable (a recent addition). See the following steps:
>>
>>  1- Run "emacs -q"
>>  2- M-x org-mode
>>  3- M-x set-variable org-list-indent-offset 8
>>  4- open /tmp/t.org
>>  5- Write the following
>>  - item 1
>>  [TAB]- item 2
>>
>>  When you press [TAB], "- item 2" is indented only two spaces right,
>>  not 8 as org-list-indent-offset describes, thats seems to be a
>>  bug. But now, if over the item 2 line you do
>>
>>  6- M-left
>>  7- M-right
>>
>>  The "- item 2" will be correctly indented 8 spaces to the right. So
>>  org-list-indent-offset is correctly working in this case.
>>
>> There wasn't any patch provided by the submitter.

  reply	other threads:[~2011-10-19  6:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-18  8:53 org-list-indent-offset only works partially Sébastien Delafond
2011-10-18  9:33 ` Michael Brand
2011-10-19  6:57   ` Michael Brand [this message]
2011-10-19 11:08     ` Nicolas Goaziou
2011-10-19 16:52       ` Michael Brand
2011-10-18 21:00 ` Nicolas Goaziou

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='CALn3zojePV=E_NFDfH_4NjHUB1e6UTAvzn914p9MggQ3FBDv8w@mail.gmail.com' \
    --to=michael.ch.brand@gmail.com \
    --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).