From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: set global visibility set to CONTENTS in a defun? Date: Mon, 04 Nov 2013 12:21:45 +0100 Message-ID: <871u2wbeeu.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIEK-0007Ad-Qa for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 06:22:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdIEB-0001bz-Pj for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 06:22:00 -0500 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:42133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdIEB-0001br-JA for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 06:21:51 -0500 Received: by mail-we0-f181.google.com with SMTP id t60so1857059wes.26 for ; Mon, 04 Nov 2013 03:21:50 -0800 (PST) In-Reply-To: (Matt Price's message of "Sat, 2 Nov 2013 21:48:14 -0400") 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: Matt Price Cc: Org Mode Hi Matt, Matt Price writes: > I am sure it's possible to do this ,but I can't seem to figure out how > to set the global visibility level of org headings to a pre-specified > level in a list function. > > (org-global-cycle) cycles the visibility among OVERVIEW --> CONTENTS --> ALL > it accepts an optional argument, but whatever I put in the argument > (number, string, whatever) has the effet of setting visibility to > OVERVIEW, e.g.. I'm sure there's a trick I'm missing, could someone > please tell me what it is? Mhh... hard to give good hints without a better idea of what your defun does -- can you share more about it? Thanks, -- Bastien