Ver Fonte

org-vm.el: properly handle virtual folders.

This fix is inspired by comments from Arik Mitschang.
Bastien Guerry há 14 anos atrás
pai
commit
7a108e1fc6
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      lisp/org-vm.el

+ 1 - 2
lisp/org-vm.el

@@ -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