From: Carsten Dominik <carsten.dominik@gmail.com>
To: Michael Brand <michael.brand@alumni.ethz.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: `C-u 2 S-Tab' with `#+STARTUP: odd'
Date: Mon, 12 Oct 2009 15:15:33 +0200 [thread overview]
Message-ID: <E28DC62B-DB34-4B46-94F1-CD84345C59B2@gmail.com> (raw)
In-Reply-To: <4AD2D9A9.1030504@alumni.ethz.ch>
On Oct 12, 2009, at 9:24 AM, Michael Brand wrote:
> Thank you for the fix of the function org-shifttab in org-version
> 6.31a.
>
> I wonder how the function org-outline-level is intended to work.
> Should it show the outline level or count the stars like in org-
> version 6.31a and one has to take into account `odd' himself to get
> the outline level when implementing own stuff which use e. g. the
> function org-shifttab?
org-outline-level shows the number of stars, independently of org-odd-
levels
Use
(org-reduced-level (org-outline-level))
to get normalized levels.
Inside org, you need to check which function works with what kind
of level, this is unfortunately not entirely abstracted.
HTH
- Carsten
>
>
>> yes, I agree it would be consistent to adapt the interpretation
>> of the prefix arg when using odd-levels.
>> I have fixed this, it is available in git now, and will be in
>> the next release (6.31).
>> Thanks!
>> - Carsten
>> On Sep 10, 2009, at 1:48 PM, Michael Brand wrote:
>>> I like the org-indent-mode with the soft-indentation but even more I
>>> like the hard-indentation with `#+STARTUP: odd hidestars' instead
>>> for
>>> which I have a question.
>>>
>>> This is the content of the example file oddeven:
>>> -*- mode: org -*-
>>> #+STARTUP: oddeven hidestars content
>>> * 1 Org Mode
>>> ** 1.1 Introduction
>>> *** 1.1.1 Installation
>>>
>>> This is the content of the example file odd:
>>> -*- mode: org -*-
>>> #+STARTUP: odd hidestars content
>>> * 1 Org Mode
>>> *** 1.1 Introduction
>>> ***** 1.1.1 Installation
>>>
>>> The different _Emacs-faces_ (colors) for the heading levels are
>>> the same
>>> when comparing the two files. This Emacs-internal adaptation I
>>> appreciate a lot.
>>>
>>> C-u 2 S-Tab shows _two_ levels with the file oddeven but only
>>> _one_ with
>>> the file odd. Is this how it is intended to work for the file odd?
>>>
>>>
>>> org-version is 6.30e.
- Carsten
next prev parent reply other threads:[~2009-10-12 13:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 7:24 `C-u 2 S-Tab' with `#+STARTUP: odd' Michael Brand
2009-10-12 13:15 ` Carsten Dominik [this message]
2009-10-12 20:00 ` Michael Brand
2009-10-13 18:47 ` Carsten Dominik
2009-10-14 6:19 ` Michael Brand
2009-10-14 11:15 ` Bernt Hansen
2009-10-14 11:56 ` Michael Brand
2009-10-14 13:58 ` Carsten Dominik
2009-10-14 19:20 ` Michael Brand
-- strict thread matches above, loose matches on Subject: below --
2009-09-10 11:48 Michael Brand
2009-09-10 16:32 ` Carsten Dominik
2009-10-14 10:15 ` Carsten Dominik
2009-10-14 13:58 ` 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=E28DC62B-DB34-4B46-94F1-CD84345C59B2@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.brand@alumni.ethz.ch \
/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).