Просмотр исходного кода

Agenda: Show [] in mode line when restricted

Carsten Dominik 16 лет назад
Родитель
Сommit
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>
 2010-02-25  Bastien Guerry  <bzg@altern.org>
 
 
 	* org.el (org-set-property): Remove useless space in the prompt.
 	* 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."
   "Set the mode name to indicate all the small mode settings."
   (setq mode-name
   (setq mode-name
 	(concat "Org-Agenda"
 	(concat "Org-Agenda"
+		(if (get 'org-agenda-files 'org-restrict) " []" "")
 		(if (equal org-agenda-ndays 1) " Day"    "")
 		(if (equal org-agenda-ndays 1) " Day"    "")
 		(if (equal org-agenda-ndays 7) " Week"   "")
 		(if (equal org-agenda-ndays 7) " Week"   "")
 		(if org-agenda-follow-mode     " Follow" "")
 		(if org-agenda-follow-mode     " Follow" "")