VM

Summary window raises when new mail is fetched

Bug #1012750 reported by Uday Reddy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Triaged
Medium
Uday Reddy

Bug Description

Vromans reports (viewmail-info, 2012-06-12)

What's keeping me from upgrading from 8.1.1. to 8.1.2 is that in the
latter version fetching new messages cause the VM subject window to
raise itself, disturbing whatever I'm doing at that moment.

I'll explain. I have a single-window setup. The VM buffers are shown in
the main Emacs window. My INBOX is a virtual folder consisting of
~/INBOX and several ~/Mail/INBOX.2012xx (one for each month).

I have a VM subject buffer but I'm working in another buffer. A new mail
arrives in my mail spool. At a timer event, VM picks up this mail and
appends it to the INBOX.

With 8.1.1, a message shows in the minibuffer "Got mail from ...".

With 8.1.2, the VM summary buffer is raised to the foreground.

In case it is helpful, this is what is shown in the *Messages* buffer:

VM 8.1.1:

  Added to /home/jv/INBOX
  Got mail from /var/spool/mail/jv.

VM 8.2.2:

  Added to /home/jv/INBOX
  Got mail from /var/spool/mail/jv.
  366 messages, 0 new, 1 unread, 0 deleted [2 times]
  Checking for new mail for /home/jv/Mail/INBOX.201203...
  366 messages, 0 new, 1 unread, 0 deleted
  407 messages, 0 new, 0 unread, 0 deleted [2 times]
  Checking for new mail for /home/jv/Mail/INBOX.201204...
  407 messages, 0 new, 0 unread, 0 deleted
  327 messages, 0 new, 0 unread, 0 deleted
  Decoding MIME message...
  Decoding quoted-printable... done
  Decoding MIME message... done
  327 messages, 0 new, 0 unread, 0 deleted
  Checking for new mail for /home/jv/Mail/INBOX.201205...
  327 messages, 0 new, 0 unread, 0 deleted
  105 messages, 0 new, 0 unread, 0 deleted
  Decoding MIME message...
  Inlining text/html by w3m, be patient...
  Decoding quoted-printable... done
  Inlining text/html by w3m... done.
  Decoding MIME message... done
  105 messages, 0 new, 0 unread, 0 deleted
  Checking for new mail for /home/jv/INBOX...
  105 messages, 0 new, 0 unread, 0 deleted

Apparently, 8.1.2 takes a different approach when new mail arrives.
That's fine. But why is the summary buffer raised?

I've looked at the changes from 8.1.1 to 8.1.2 but I cannot explain why
this happens.

Note that VM 8.1.1 and 8.1.2 use exactly the same configuration.

Tags: 8.1
Revision history for this message
Uday Reddy (reddyuday) wrote :

Johan, what is the value of `vm-auto-get-new-mail' in your configuration? What happens if you set it to `t'?

Uday

Revision history for this message
Johan Vromans (jvromans) wrote : [Bug 1012750] Re: Summary window raises when new mail is fetched

[Quoting Uday Reddy, on June 13 2012, 17:13, in "[Bug 1012750] Re: Su"]
> Johan, what is the value of `vm-auto-get-new-mail' in your
> configuration?

It is set to 120, to initiate mail fetching eveyr two minutes.

> What happens if you set it to `t'?

No mail is fetched automatically and, logically, no window raise.

-- Johan

Revision history for this message
Uday Reddy (reddyuday) wrote :

Johan Vromans writes:

> > What happens if you set it to `t'?
>
> No mail is fetched automatically and, logically, no window raise.

Ok, that is your immediate workaround. Using a timer to fetch mail is
expected to be disruptive, as far as I can see. The code for it is not
written carefully to minimize disruption.

On the other hand, I couldn't reproduce your window-raising situation. When
you say the "window" raises, do you mean an Emacs window or a GUI window
(also called a "frame")? You will need to file a vm-submit-bug-report so
that I can check your settings.

Cheers,
Uday

Revision history for this message
Johan Vromans (jvromans) wrote :
Download full text (14.4 KiB)

[Quoting Uday Reddy, on June 13 2012, 19:16, in "[Bug 1012750] Re: Su"]
> Ok, that is your immediate workaround. Using a timer to fetch mail
> is expected to be disruptive, as far as I can see. The code for it
> is not written carefully to minimize disruption.

Normally, I have a single frams (GUI window) I work in. In this frame
I can switch between buffers. When I switch to a buffer, it occupies
the whole (C-x 1) or part (C-x 2) of the frame.

The only disruption in 8.1.1 is a minibuffer message, which is
minimally disruptive, if at all.

In 8.1.2, the summary window is switched to (I called this 'raised'
which may be confusing), as if I executed the appropriate C-x b
command. This is very disruptive.

> On the other hand, I couldn't reproduce your window-raising situation. When
> you say the "window" raises, do you mean an Emacs window or a GUI window
> (also called a "frame")? You will need to file a vm-submit-bug-report so
> that I can check your settings.

---- snip ----
Emacs : GNU Emacs 23.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.21.4)
 of 2010-07-08 on x86-05.phx2.fedoraproject.org
Package: VM 8.1.2

current state:
==============
(setq
 features '(reporter mule-util gnus-vm sort smiley ansi-color gnus-cite
     gnus-async gnus-bcklg gnus-nocem parse-time gnus-ml disp-table
     gnus-topic nnml nndraft nnmh bbdb-gnus gnus-agent gnus-srvr
     gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-art
     mm-uu mml2015 epg-config mm-view smime mel path-util gnus-sum nnoo
     gnus-group gnus-undo nnmail mail-source format-spec gnus-start
     gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems newcomment
     html-mode html-helper-mode tempo compile dired vm-sort flyspell
     ispell vm-reply time-stamp vm-delete cycle-buffer multi-isearch
     help-mode view vc-rcs tapestry vm-virtual vm-save bbdb-vm
     vm-autoload bbdb-snarf mail-extr bbdb-com warnings vm-rfaddons
     vm-menu vm-window vm-toolbar vm-folder vm-mime vm-undo vm-summary
     vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro
     vm mabbrev-menu derived eudcb-ldap ldap eudc eudc-options-file
     cus-edit cus-start cus-load eudc-vars imenu avoid vc-svn psvn cl
     cl-19 log-edit add-log diff-mode pcvs pcvs-parse pcvs-info
     pcvs-defs pcvs-util ewoc bbdb timezone message idna sendmail
     regexp-opt ecomplete mml mml-sec password-cache mm-decode
     mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp
     ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util
     mail-prsvr gmm-utils mailheader canlock sha1 sha1-el hex-util
     hashcash mail-utils header paren stig-paren delsel easy-mmode
     pc-select server saveplace recentf tree-widget wid-edit autoinsert
     bookmark pp byte-opt bytecomp byte-compile uniquify mailcrypt
     rfc822 comint ring easymenu mel-b-el mime-def alist mcharset
     mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom poe pym static
     apel-ver product advice help-fns advice-preload u-vm-color
     vm-autoloads vm-vars vm-version bbdb-autoloads tooltip ediff-hook
     vc-hooks lisp-float-type mwheel x-win x-dnd font-setting...

Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.0b1 → 8.2.89a
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.