浏览代码

Agenda: Show [] in mode line when restricted

Carsten Dominik 15 年之前
父节点
当前提交
8bb1c06a3a
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 5 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-agenda.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-02-25  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-agenda.el (org-agenda-set-mode-name): Show if the agenda is
+	restricted, as an agenda mode.
+
 2010-02-25  Bastien Guerry  <bzg@altern.org>
 
 	* org.el (org-set-property): Remove useless space in the prompt.

+ 1 - 0
lisp/org-agenda.el

@@ -5865,6 +5865,7 @@ When called with a prefix argument, include all archive files as well."
   "Set the mode name to indicate all the small mode settings."
   (setq mode-name
 	(concat "Org-Agenda"
+		(if (get 'org-agenda-files 'org-restrict) " []" "")
 		(if (equal org-agenda-ndays 1) " Day"    "")
 		(if (equal org-agenda-ndays 7) " Week"   "")
 		(if org-agenda-follow-mode     " Follow" "")