Hi Kevin,
* Kevin J. McCarthy on Tuesday, October 15, 2019 at 09:09:12 +0800:
On Mon, Oct 14, 2019 at 04:02:52PM +0100, Christian Ebert wrote:
* Christian Ebert on Monday, October 14, 2019 at 15:50:01 +0100:
+macro pager y "<exit><browse-mailboxes>" "show incoming mailboxes list"
As there's now a clean command instead of macro hacks - thank
you, Kevin -, it may be worth considering to integrate this
directly in browse-mailboxes?
I forgot about that patch from you last year.
However, I'd like to review the reasons for this before applying your
new patch. How is this any difference from calling <change-folder> or
<sidebar-open> from the pager? Why should 'y' behave differently?
The goal is that 'y' should _not_ behave differently. I.e., I
should be able to browse-mailboxes, choose a different mailbox
and open it without error.
What exactly are you doing that generates the error when
invoking 'y' from the pager.
I have the following in my muttrc:
folder-hook somefoldernamepattern ' push <delete-pattern>~r>1m<enter>'
1. I am in a mailbox, let's call it 'currentbox'.
2. I am in its *index* and press 'y' for <browse-mailboxes>.
3. From the browser I choose a mailbox which matches
'somefolderpattern'.
4. I open the target mailbox without errors.
From the *pager* 1., 2., 3. behave the same, when i do 4. mutt
barks: 'Not available in this menu'.
I want mutt to behave the same as if 1. and 2. would happen in
the index.
Is there any reason why you shouldn't create the macro yourself
in that case?
1. unexpected behaviour, even error
2. hard to find out the reason, and hard to find the cure [*]
[*] I don't really understand why the error is triggered by a
hook of the target mailbox combined with the fact that it is not
triggered when I start the procedure in the index. It's as if
there is some remnant pager state when I'm in the browser:
delete-pattern indeed is only available from the index, neither
from the browser (but if that was the problem, then the error
would also be thrown if I start from index) nor from the pager.
So, in layman's terms: For consistent and error free behavior I
have to exit the 'lingering pager state'.
Admittedly it feels like doctoring at the symptom, but so far it
works for me[tm].
--
LAST SHIP HOME
Die Weltumsegelung der Peter von Danzig
Ein Film von Michael Weber und Christian Ebert
--->> https://lastshiphome.de