emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eddward DeVilla" <eddward@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: promote/demote oddities
Date: Thu, 19 Jul 2007 13:32:01 -0500	[thread overview]
Message-ID: <b71b18520707191132k5bf12293idddf0df535607db1@mail.gmail.com> (raw)

I found two problems is promotion and demotion.  This is with org-more
5.03 on emacs 21.1.1 and 21.3.50.1.

First, given the file

------- test.org ------
* h 1
  t 1
*** h 1 1
    t 1
*** h 1 2
    t 1 2

----------------------

Using M-S-right on heading 'h 1' produces

------- test.org ------
*** h 1
  t 1
***** h 1 1
    t 1
***** h 1 2
    t 1 2

----------------------

I would have expected the text lines to indent as well.


Second, given the file

------- test.org ------
* h 2
  - i 1
  - i 2

----------------------

If I use M-S-right on 'i 1', nothing happens.  (This may be new
intentional behavior.)  If I use M-S-right I get

------- test.org ------
* h 2
    - i 1
  - i 2

----------------------

This is expected since demotion now shifts by two.  However if I try
to promote 'i 1' again using M-S-left I get

------- test.org ------
* h 2
      - i 1
  - i 2

----------------------

It looks like it is increase the indent by the current indent minus 2.
 In the debugger it looks like delta in org-indent-item (line 6192) is
2 for M-S-right and the current indent -2 for M-S-left.  I'm having a
little trouble following the logic of how it is set.

Edd

             reply	other threads:[~2007-07-19 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-19 18:32 Eddward DeVilla [this message]
2007-07-20  9:35 ` promote/demote oddities Carsten Dominik

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=b71b18520707191132k5bf12293idddf0df535607db1@mail.gmail.com \
    --to=eddward@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).