From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: `C-u 2 S-Tab' with `#+STARTUP: odd' Date: Mon, 12 Oct 2009 15:15:33 +0200 Message-ID: References: 6D3A0AC2-C1BF-4541-8E55-0E3A4E488A67@gmail.com <4AD2D9A9.1030504@alumni.ethz.ch> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxKkY-0005rR-5G for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:15:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxKkT-0005qU-Jc for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:15:41 -0400 Received: from [199.232.76.173] (port=36430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxKkT-0005qP-Er for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:15:37 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:42510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxKkT-00038M-2n for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:15:37 -0400 Received: by ewy28 with SMTP id 28so16093925ewy.42 for ; Mon, 12 Oct 2009 06:15:36 -0700 (PDT) In-Reply-To: <4AD2D9A9.1030504@alumni.ethz.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: emacs-orgmode@gnu.org 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