From 06cde5027e8ca93d82d14c5c0b46deb3e1c80b25 Mon Sep 17 00:00:00 2001 From: Thomas Morgan Date: Tue, 13 May 2014 23:52:48 -0400 Subject: [PATCH] Fix bug mading agenda line disappear on clock-in. In some cases with a link at the end of the line, `(beginning-of-line 0)' moves to a position within the link (between the closing bracket of the link description and the following closing bracket) and not to the beginning of the line. Then the properties at that position in the link are made the properties of the whole line, and the entire line disappears. * lisp/org-agenda.el (org-agenda-change-all-lines): Move backward one line and to the beginning of that line as an explicit second step. TINYCHANGE --- lisp/org-agenda.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index e2a0629..428d31f 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8895,7 +8895,8 @@ If FORCE-TAGS is non nil, the car of it returns the new tags." (save-restriction (narrow-to-region (point-at-bol) (point-at-eol)) (org-agenda-finalize))) - (beginning-of-line 0))))) + (forward-line -1) + (beginning-of-line))))) (defun org-agenda-align-tags (&optional line) "Align all tags in agenda items to `org-agenda-tags-column'." -- 1.7.10.4