mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-28 10:56:57 +00:00
Merge branch 'hotfix-7.8.06'
This commit is contained in:
commit
1a81418320
@ -336,7 +336,14 @@ current time."
|
||||
(let ((inhibit-read-only t) l c
|
||||
(buffer-invisibility-spec '(org-link))
|
||||
(moment (time-subtract (current-time)
|
||||
(list 0 (* 3600 org-extend-today-until) 0))))
|
||||
(list 0 (* 3600 org-extend-today-until) 0)))
|
||||
disabled-overlays)
|
||||
;; Disable filters; this helps with alignment if there are links.
|
||||
(mapc (lambda (ol)
|
||||
(when (overlay-get ol 'invisible)
|
||||
(overlay-put ol 'invisible nil)
|
||||
(setq disabled-overlays (cons ol disabled-overlays))))
|
||||
(overlays-in (point-min) (point-max)))
|
||||
(save-excursion
|
||||
(goto-char (if line (point-at-bol) (point-min)))
|
||||
(while (not (eobp))
|
||||
@ -352,7 +359,9 @@ current time."
|
||||
(time-subtract moment (days-to-time org-habit-preceding-days))
|
||||
moment
|
||||
(time-add moment (days-to-time org-habit-following-days))))))
|
||||
(forward-line)))))
|
||||
(forward-line)))
|
||||
(mapc (lambda (ol) (overlay-put ol 'invisible t))
|
||||
disabled-overlays)))
|
||||
|
||||
(defun org-habit-toggle-habits ()
|
||||
"Toggle display of habits in an agenda buffer."
|
||||
|
Loading…
Reference in New Issue
Block a user