From: "Sébastien Gendre" <seb@k-7.ch>
To: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Cc: Kristoffer Balintona <krisbalintona@gmail.com>,
Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Indirect follow mode in agenda: Display, edition and how to hide drawers
Date: Fri, 08 Nov 2024 16:05:24 +0100 [thread overview]
Message-ID: <87o72pbwaz.fsf@k-7.ch> (raw)
In-Reply-To: <87cyj9o00q.fsf@gmail.com> (Karthik Chikmagalur's message of "Tue, 05 Nov 2024 13:15:17 -0800")
[-- Attachment #1: Type: text/plain, Size: 1719 bytes --]
Hello,
Thank you for your reply.
Mines are bellow.
Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:
>> If I understand you correctly, you want the drawers shown by
>> org-agenda-follow-mode to be hidden rather than shown as you move across
>> agenda items, yet? If so, I'm not sure if there is an option to by
>> default have drawers hidden (I suppose you can alter the minor mode
>> yourself...), but calling SPC with C-u shows items but hides their
>> drawers.
>
> I use this piece of advice to get the desired folding behavior in
> `org-agenda-follow-mode':
>
> (advice-add 'org-agenda-do-tree-to-indirect-buffer :after
> (defun my/org-agenda-collapse-indirect-buffer-tree (arg)
> (with-current-buffer org-last-indirect-buffer
> (org-ctrl-c-tab) (org-fold-show-entry 'hide-drawers))))
It's an interesting way to do it.
When I create a new Org file, create a heading and add a logbook entry,
the logbook drawer is collapsed.
But when org-agenda display a habit task, with indirect follow mode, it
expend the logbook drawer as well as the properties drawer.
I still search why this different behavior.
>> This is not the default behavior, I don't think. Have you made
>> customizations to display-buffer-alist?
>
> This used to be the default behavior, and it couldn't be customized as
> it didn't obey display-buffer-alist. The window would always open below
> the current one. In May this year it was changed (in commit
> db5478108c063d012432eba50e4ebb71a278c060) to follow
> display-buffer-alist. Chances are Sébastien is using a version of Org
> mode that does not have this commit.
Is this new behavior on Org 9.7 ? I use 9.6.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
next prev parent reply other threads:[~2024-11-08 15:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 8:02 Indirect follow mode in agenda: Display, edition and how to hide drawers Sébastien Gendre
2024-11-05 9:22 ` Kristoffer Balintona
2024-11-05 21:15 ` Karthik Chikmagalur
2024-11-08 15:05 ` Sébastien Gendre [this message]
2024-11-08 14:59 ` Sébastien Gendre
2024-11-10 23:34 ` Sébastien Gendre
2024-11-11 0:09 ` Sébastien Gendre
2024-11-11 17:59 ` Ihor Radchenko
2024-11-12 0:30 ` Sébastien Gendre
2024-11-12 19:17 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o72pbwaz.fsf@k-7.ch \
--to=seb@k-7.ch \
--cc=emacs-orgmode@gnu.org \
--cc=karthikchikmagalur@gmail.com \
--cc=krisbalintona@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).