浏览代码

Merge branch 'maint'

Bastien Guerry 12 年之前
父节点
当前提交
c48f322b55
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/org-agenda.el

+ 1 - 0
lisp/org-agenda.el

@@ -4929,6 +4929,7 @@ the documentation of `org-diary'."
       (with-current-buffer buffer
 	(unless (derived-mode-p 'org-mode)
 	  (error "Agenda file %s is not in `org-mode'" file))
+	(setq org-agenda-buffer (or org-agenda-buffer buffer))
 	(let ((case-fold-search nil))
 	  (save-excursion
 	    (save-restriction