From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Expanded property drawers as per file option Date: Thu, 30 May 2013 00:32:55 +0200 Message-ID: <87sj15to14.fsf@gmail.com> References: <2013-05-28T16-16-08@devnull.Karl-Voit.at> <871u8rduyb.fsf@gmail.com> <87wqqjcfse.fsf@gmail.com> <87sj16xv91.fsf@news.tumashu-localhost.org> <2013-05-29T21-55-35@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhovk-0001Ib-68 for emacs-orgmode@gnu.org; Wed, 29 May 2013 18:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhovc-0003sE-OV for emacs-orgmode@gnu.org; Wed, 29 May 2013 18:33:16 -0400 Received: from plane.gmane.org ([80.91.229.3]:59479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhovc-0003s5-Hr for emacs-orgmode@gnu.org; Wed, 29 May 2013 18:33:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UhovZ-00084s-Qk for emacs-orgmode@gnu.org; Thu, 30 May 2013 00:33:05 +0200 Received: from e178059143.adsl.alicedsl.de ([85.178.59.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 May 2013 00:33:05 +0200 Received: from tjolitz by e178059143.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 May 2013 00:33:05 +0200 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 Karl Voit writes: > * Feng Shu wrote: >> Thorsten Jolitz writes: >> >>> Thorsten Jolitz writes: >>> >>> ,------------------------------------- >>> | (defun find-org-contracts () >>> | (interactive) >>> | (find-file "/path/to/contracts.org") >>> | (show-all)) >>> | >>> | M-x find-org-contracts >>> `------------------------------------- >> >> I use: >> #+STARTUP: showeverything > > Those two methods result in expanded properties, yes. > > However, I obviously was not precise enough to explain my > requirement which is more complicated than "showeverything". > > I would like to have all headings folded when I open the file (as it > is now). Then I navigate to a heading of a person by using text > search or arrow keys and TAB (to expand hierarchies). For me both 'show-entry' and 'show-children' open the property drawer of a headline. I actually use these two for visibility cycling: ,------------------------------------------------------- | [From `outline-mode-easy-bindings'] | | (defun outline-show-more () | (interactive) | (when (outline-on-heading-p) | (cond ((and (outline-subheadings-p) | (not (outline-subheadings-visible-p))) | (show-children)) | ((and (not (outline-subheadings-p)) | (not (outline-body-visible-p))) | (show-subtree)) | ((and (outline-body-p) | (not (outline-body-visible-p))) | (show-entry)) | (t | (show-subtree))))) | | | (defun outline-hide-more () | (interactive) | (when (outline-on-heading-p) | (cond ((and (outline-body-p) | (outline-body-visible-p)) | (hide-entry) | (hide-leaves)) | (t | (hide-subtree))))) `------------------------------------------------------- With these bindings: ,--------------------------------------------------------------------- | (let ((map outline-mode-map)) | (outshine-define-key-with-fallback | map (kbd "M-") (outline-hide-more) (outline-on-heading-p)) | (outshine-define-key-with-fallback | map (kbd "M-") (outline-show-more) (outline-on-heading-p)) [...] `--------------------------------------------------------------------- and these docs: ,--------------------------------------------------------------------------- | runs the command outline-show-more, which is an interactive Lisp | function in `outshine.el'. | | It is bound to . | | (outline-show-more) `--------------------------------------------------------------------------- ,-------------------------------------------------------------------- | outline-hide-more is an interactive Lisp function in `outshine.el'. | | (outline-hide-more) `-------------------------------------------------------------------- -- cheers, Thorsten