Prechádzať zdrojové kódy

Turn off invisibility while constructing habit graphs

Bernt Hansen reported strange things happening to the display when
graph tasks are hidden while updating a task in the agenda.
Carsten Dominik 15 rokov pred
rodič
commit
2f5f6e401f
2 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 5 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-habit.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-01-04  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-habit.el (org-habit-insert-consistency-graphs): Turn off
+	invisibility while adding the graphs.
+
 2010-01-03  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-remember.el (org-select-remember-template): Use C letter to

+ 1 - 0
lisp/org-habit.el

@@ -305,6 +305,7 @@ current time."
 (defun org-habit-insert-consistency-graphs (&optional line)
   "Insert consistency graph for any habitual tasks."
   (let ((inhibit-read-only t) l c
+	(buffer-invisibility-spec nil)
 	(moment (time-subtract (current-time)
 			       (list 0 (* 3600 org-extend-today-until) 0))))
     (save-excursion