Re: [PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2021-08-31 Thread inwit
On Tue Aug 31, 2021 at 11:37 AM CEST, inwit wrote: > I'll give it another spin. Ok, I have managed to merge it manually and now it works. I'm sending the draft patch now. Sorry if I'm doing it wrong, it's my first time. Please bear with me. Regards, > > Regards, > > >

Re: [PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2021-08-31 Thread inwit
On Tue Aug 31, 2021 at 2:00 AM CEST, David Bremner wrote: > That function is defined by a macro on line 272 of notmuch-tree.el. Clearly my knowledge of elisp is so far insufficient for this task. > I guess if nobody has a better idea, you can post your work-in-progress > and maybe it will be more

Re: [PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2021-08-30 Thread David Bremner
"inwit" writes: > After applying the patch manually, I get some warnings and > the following error: > > `emacs/notmuch.el:76:1:Error: Symbol’s value as variable is void: > notmuch-tree-previous-message-button` > > Seems like that function is missing in the current code, am I right? That

Re: [PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2021-08-30 Thread inwit
Hi all, While being a total noob, I'm also interested in this patch, so after getting it via David Bremner (thanks!), I have tried to apply it. However, the code seems to have diverged and `git am 3` complains about conflicts. After applying the patch manually, I get some warnings and the

Re: [PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2019-05-03 Thread David Bremner
Julien Masson writes: > > +(defcustom notmuch-tree-overlay-string " [...]" > + "String displayed at the beginning of the overlay" > + :type 'string > + :group 'notmuch-tree) I initially thought this wasn't working because the end of my line was outside the visible window in Emacs. I'm not

[PATCH v2] emacs: tree: support fold/unfold thread or sub-thread

2019-03-25 Thread Julien Masson
This patch allow the user to fold/unfold a thread or a sub-thread in the current tree buffer by pressing "t" key. By default a string is displayed at the beginning of the overlay to indicate that this thread/sub-thread is folded. Pressing again "t" on a folded thread/sub-thread will unfold it.