Re: [VM] Overridding vm's messing with windows

2018-08-24 Thread Uday Reddy
Robert Marshall writes:

> I use vm's summary mode and most of the time I have a frame with just
> that buffer visible. I've found a minor annoyance is that when I
> vm-get-new-mail and if there is new mail, vm then splits that window,
> and shows the presentation window under it, I have a few new emails that
> I've not read yet (yes I know!!) so the really new ones aren't visible I
> then put the window situation back to what it was and go and find the
> really new ones.

Just catching up with this old email.

How the windows get displayed is controlled by the Frame Configuration. When
you get new mail, VM resets all the frames as per the Frame Configuration
settings. So, if you want a separate window for summary, you probably need
to set `vm-frame-per-summary'.

Cheers,
Uday



Re: [VM] Overridding vm's messing with windows

2018-03-07 Thread Robert Marshall
On Wed, Mar 07 2018, Uday Reddy  wrote:

> s...@capuchin.co.uk writes:
>
>> I looked at vm-frame-per-summary but that isn't what I want. I'm quite
>> happy with when *I* type 'space' the summary frame splits but I don't
>> like vm deciding to do it for me! Am I missing some other configuration
>> variable?
>
> Hi, see the manual section on "Navigating".
>
> Cheers,
> Uday

Looking at the 8.2.0b info there's no Navigation section I've been to
the latest bzr trunk and, looking at the section there, I'm not sure what
you're pointing me to? My question is about the window configuration
rather than moving around the summary window - I have a frame set up as
I want with just the summary visible and I don't want just getting email
to cause the frame /window layout to change. The real content of my
issue lies in the snipped bit:

when I vm-get-new-mail and if there is new mail, vm then splits
that window, and shows the presentation window under it,

I want to prevent this  and at the moment I'm using
vm-arrived-messages-hook to do this.

It might be nice (IMHO) if running vm-summarize when the summary buffer
is already visible - when it doesn't appear to do anything - for it just
to show the summary buffer - in which case my issue would be more or
less solved. I had been doing C-x 1 which doesn't (for me lie well under
the fingers)

Robert
-- 
La grenouille songe..dans son château d'eau
Robert Marshall   twitter: @rajm




Re: [VM] Overridding vm's messing with windows

2018-03-07 Thread Uday Reddy
s...@capuchin.co.uk writes:

> I looked at vm-frame-per-summary but that isn't what I want. I'm quite
> happy with when *I* type 'space' the summary frame splits but I don't
> like vm deciding to do it for me! Am I missing some other configuration
> variable?

Hi, see the manual section on "Navigating".

Cheers,
Uday



[VM] Overridding vm's messing with windows

2018-03-06 Thread Robert Marshall
I use vm's summary mode and most of the time I have a frame with just
that buffer visible. I've found a minor annoyance is that when I
vm-get-new-mail and if there is new mail, vm then splits that window,
and shows the presentation window under it, I have a few new emails that
I've not read yet (yes I know!!) so the really new ones aren't visible I
then put the window situation back to what it was and go and find the
really new ones.

I looked at vm-frame-per-summary but that isn't what I want. I'm quite
happy with when *I* type 'space' the summary frame splits but I don't
like vm deciding to do it for me! Am I missing some other configuration
variable?

For the moment what I'm trying is
(defun rajm:keep-summary-full ()
  (if (eq major-mode 'vm-summary-mode)
  (delete-other-windows)))
(add-hook 'vm-arrived-messages-hook 'rajm:keep-summary-full)

Robert
-- 
La grenouille songe..dans son château d'eau
Robert Marshall   twitter: @rajm