From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Suppress visibility cycling for a specific tree Date: Mon, 25 Jul 2011 15:24:15 +0200 Message-ID: <70280F95-CCCC-4831-ABBC-A8DA8B783F02@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlL8t-000518-M2 for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlL8s-0001Ch-JY for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:24:19 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:46225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlL8s-0001CW-Es for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:24:18 -0400 Received: by eyx24 with SMTP id 24so5751594eyx.19 for ; Mon, 25 Jul 2011 06:24:17 -0700 (PDT) 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: suvayu ali Cc: org-mode mailing list On Jul 25, 2011, at 2:13 PM, suvayu ali wrote: > Hi, > > Is it possible to suppress visibility cycling for a particular tree? > What I am looking for is the behaviour of an ARCHIVEd tree. I have some > general guidelines and local config in this tree that I don't want to > see usually but since it is technically not archived information I am > looking for an alternate means to a similar goal. > > Could I specify a special tag of my own and define the behaviour I want > with elisp? Where do I start looking for this? Archived trees are kept closed by the function `org-cycle-hide-archived-subtrees', which is called by `org-cycle-hook'. You could define a tag of your choice and then put a function into org-cycle-hook that uses a let form to bind `org-archive-tag' to the chosen tag and then calls `org-cycle-hide-archived-subtrees' to do the work. Hope this gets you on the path. - Carsten