From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitaly Subject: Fwd: request of numeric arguments handling by +STARTUP: content Date: Sun, 24 Feb 2013 09:01:32 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf302ef79e05155704d6722823 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9UeW-0001r1-N7 for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 01:01:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9UeT-0001JG-Iy for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 01:01:36 -0500 Received: from mail-qc0-f179.google.com ([209.85.216.179]:59071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9UeT-0001J1-Dl for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 01:01:33 -0500 Received: by mail-qc0-f179.google.com with SMTP id b40so864665qcq.38 for ; Sat, 23 Feb 2013 22:01:33 -0800 (PST) In-Reply-To: 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 --20cf302ef79e05155704d6722823 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 // Sorry if this is duplicate. I tried to send it being not subscribed before. --20cf302ef79e05155704d6722823 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


<= div>
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 ca= n't be used since it takes no arguments too, so having multiple VISIBIL= ITY 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 argum= ent 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

// Sorry if this is duplicate. I tried to send it being not= subscribed before.
--20cf302ef79e05155704d6722823--