emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* promote/demote oddities
@ 2007-07-19 18:32 Eddward DeVilla
  2007-07-20  9:35 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Eddward DeVilla @ 2007-07-19 18:32 UTC (permalink / raw)
  To: org-mode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-20 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19 18:32 promote/demote oddities Eddward DeVilla
2007-07-20  9:35 ` Carsten Dominik

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).