org-vm.el: properly handle virtual folders.

This fix is inspired by comments from Arik Mitschang.
This commit is contained in:
Bastien Guerry 2011-02-14 11:14:25 +01:00
parent fa9dfe52b6
commit 7a108e1fc6
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,7 @@
(when (and (or (eq major-mode 'vm-summary-mode)
(eq major-mode 'vm-presentation-mode))
(save-window-excursion
(condition-case nil (vm-select-folder-buffer)
(error "Buffer not associated with any file"))))
(vm-select-folder-buffer) buffer-file-name))
(and (eq major-mode 'vm-presentation-mode) (vm-summarize))
(vm-follow-summary-cursor)
(save-excursion