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 16:17:07 +0200 Message-ID: <72BC9731-FB8F-44CD-B6EB-109F94C88D28@gmail.com> References: <70280F95-CCCC-4831-ABBC-A8DA8B783F02@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlLy8-0005Tk-4Z for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 10:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlLy3-0007OV-9s for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 10:17:16 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:42154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlLy2-0007OQ-U6 for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 10:17:11 -0400 Received: by eyx24 with SMTP id 24so5827580eyx.19 for ; Mon, 25 Jul 2011 07:17:09 -0700 (PDT) In-Reply-To: <70280F95-CCCC-4831-ABBC-A8DA8B783F02@gmail.com> 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: Carsten Dominik Cc: org-mode mailing list On Jul 25, 2011, at 3:24 PM, Carsten Dominik wrote: >=20 > On Jul 25, 2011, at 2:13 PM, suvayu ali wrote: >=20 >> Hi, >>=20 >> 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. >>=20 >> Could I specify a special tag of my own and define the behaviour I = want >> with elisp? Where do I start looking for this? >=20 > 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. >=20 > Hope this gets you on the path. Actually, the true zen[1] way to do this is to use ACHIVE anyway and change your brain to accept that ARCHIVE does not mean the thing is archived at all. Or do (setq org-archive-tag "KEEPCLOSED") :-) The side effect of this is that stuff in these trees ill never contribute t the agenda - but if it is setup stuff, you probably do not care.... These solutions will work if the subtree does not contain stuff relevant for agendas..... - Carsten [1] The book of knowledge defines Zen as: Zen emphasizes experiential wisdom in the attainment of enlightenment. As such, it de-emphasizes theoretical knowledge in favor of direct self-realization through meditation and dharma = practice....