VM

Displaying the right message after quitting a virtual folder

Bug #936517 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Fix Committed
High
Uday Reddy

Bug Description

Manuel Hemenegildo writes (viewmail-info, 2012-02-19):

when returning to a message folder after visiting a virtual folder
later vm versions try to return to the message selected in the virtual
folder. This is indeed very useful (as indicated in the manual) so
that virtual buffers can be used to perform a search, and I use this
great feature a lot lately (thanks Uday!). However, the current
behavior has confused me a number of times. To reproduce:

- Open folder F, move to some random messag M1.
- Create a virtual folder V, move to message M2.
- Quit V ("q").

At this point VM returns to F and internally it is correctly at
message M2 (and this is reflected in the summary). However, the
message actually displayed is not M2 but M1 (while the message number
in the mode line is the correct one corresponding to M2).

This has confused me several times since, seeing M1 in front of me, I
have hit reply, thinking that I was replying to M1 but the reply is
sent to the sender of M2!

This is specially confusing if you prefer (like me) to not see the
summary always there, by using, e.g.:

(setq vm-mutable-frames nil)
(setq vm-mutable-windows nil)

In this case when you quit V and go to F the only thing you see is M1
but if you hit reply you reply to M2 --ouch!

Simply adding a call to vm-refresh-message at the end of vm-quit:

    (vm-update-summary-and-mode-line)))
-->
    (vm-update-summary-and-mode-line)
    (vm-refresh-message)))

seems to solve the problem, but I am not 100% sure this is the right
approach or that it covers all the cases...

Tags: 8.2 virtual

Related branches

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

See Bug 732584 for background.

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

We will let `vm-record-and-change-message-pointer' do the message presentation automatically.

Fix committed in rev. 1366.

Changed in vm:
status: Triaged → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.2a → 8.2.1a
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.1a → 8.2.90a
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.