From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitaly Subject: request of numeric arguments handling by +STARTUP: content Date: Sun, 24 Feb 2013 08:55:53 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074d638cf591c04d67213fb Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9UZ4-0000ns-A5 for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 00:56:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9UZ0-0008Cj-Uo for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 00:55:58 -0500 Received: from mail-qe0-f41.google.com ([209.85.128.41]:56743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9UZ0-0008CY-QW for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 00:55:54 -0500 Received: by mail-qe0-f41.google.com with SMTP id 7so1038291qeb.28 for ; Sat, 23 Feb 2013 21:55:53 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf3074d638cf591c04d67213fb Content-Type: text/plain; charset=UTF-8 I want to have CONTENTS showing headlines up to particular level N when open file. I couldn't find such a thing in docs and VISIBILITY can't be used since it takes no arguments too, so having multiple VISIBILITY properties in every top-level headline is a bit stupid, not saying that it can not solve the problem fully, because it also doesn't take argument for "children" or "content". Why not handling this somewhere in "+STARTUP: content N" or anywhere similar? Since org-mode handles arguments for org-global-cycle, why not handle them on startup? I managed to get this behavior simply by calling the (org-global-cycle N) in find-file-hook, but this is somewhat dirty. Regards, Vitaly --20cf3074d638cf591c04d67213fb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I want to have CONTENTS showing headlines up to = particular level N when open file. I couldn't find such a thing in docs= and VISIBILITY can't be used since it takes no arguments too, so havin= g multiple VISIBILITY properties in every top-level headline is a bit stupi= d, not saying that it can not solve the problem fully, because it also does= n't take argument for "children" or "content".

Why not handling this somewhere in "+STARTUP: content N" or a= nywhere similar? Since org-mode handles arguments for org-global-cycle, why= not handle them on startup?

I managed to get this behavior si= mply by calling the (org-global-cycle N) in find-file-hook, but this is som= ewhat dirty.

Regards, Vitaly
--20cf3074d638cf591c04d67213fb--