瀏覽代碼

Revert "Honour existing restrictions when visiting tasks from the agenda"

This reverts commit 8f93a75cacbfffb120d5ce18c494e2b85afa8d74.
Bastien Guerry 13 年之前
父節點
當前提交
95e71f5705
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lisp/org-agenda.el

+ 1 - 3
lisp/org-agenda.el

@@ -7113,9 +7113,7 @@ at the text of the entry itself."
 	   (pos (marker-position marker)))
       (org-pop-to-buffer-same-window buffer)
       (and delete-other-windows (delete-other-windows))
-      (when (or (< pos (point-min))
-		(> pos (point-max)))
-	(widen))
+      (widen)
       (goto-char pos)
       (when (eq major-mode 'org-mode)
 	(org-show-context 'agenda)