0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-22 04:19:05 +00:00

Bug fix: Hide drawers after showing entry content

Bernt Hansen writes:

> I recently noticed that using SPACE or TAB in the agenda displays
> the task in the other window but all of the drawers are exposed.
> If you fold the org file with S-TAB to Overview or Contents
> display and then switch to the agenda and SPACE or TAB on a
> folded task it unfolds the entire thing including the drawers.
>
> Expanding the file to SHOW ALL and then using follow mode from
> the agenda shows me the view I'm really looking for so that's
> what I'm doing as a workaround right now.
>
> While doing my weekly review of tasks I use follow mode to view
> task detail and the expanded :LOGBOOK: and :PROPERTIES: drawers
> hide detail scrolled off the bottom of the window.  My :LOGBOOK:
> drawer for repeated tasks tends to be l-o-n-g and shoves detail
> way down the file (such as my weekly review checklist :) ).
>
> Is it possible to control expansion of the drawers when
> displaying a task from the agenda?  The view I'm looking for is
> the same as SHOW ALL from S-TAB.  It seems that if the task is
> expanded from the agenda it expands everything including the
> drawers.
This commit is contained in:
Carsten Dominik 2009-07-05 16:30:02 +02:00
parent 0795e42daf
commit e7ceeb3a49
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2009-07-05 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-show-entry): Hide drawers.
2009-07-03 Carsten Dominik <carsten.dominik@gmail.com>
* org-footnote.el (org-footnote-auto-adjust): New option.

View file

@ -16395,7 +16395,8 @@ Show the heading too, if it is currently invisible."
(concat "[\r\n]\\(" outline-regexp "\\)") nil t)
(match-beginning 1)
(point-max)))
nil))
nil)
(org-cycle-hide-drawers 'children))
(error nil))))
(defun org-make-options-regexp (kwds &optional extra)