From 0a0a9e5366a62434a82de88363a2725b791726ab Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 28 Sep 2009 20:30:16 +0100 Subject: [PATCH] Agenda: Fix bug when changing lines with invisible text in prefix Peter Westlake writes: > One small thing, though - in the agenda TODO view, pressing "t" > to mark the task as Done messes up the layout: > > [[http://orgmode.org][Org-Mode]]: TODO Demonstrate problem with link > in category > > (which appears as: > > Org-Mode: TODO Demonstrate problem with link in category) > > > Press T on that line: > > [[http://orgmode.org][Org-Mode]]: TODO Demonstrate problemDONE > Demonstrate problem with link in category > > (which appears as: > > Org-Mode: TODO Demonstrate problemDONE Demonstrate problem with > link in category) --- lisp/ChangeLog | 3 +++ lisp/org-agenda.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b7bca61d3..91c2a797d 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-09-28 Carsten Dominik + * org-agenda.el (org-agenda-change-all-lines): Handle invisible + text in the prefix (if category is a link). + * org-latex.el (org-export-latex-preprocess): Deal properly with empty lines in verse environments. diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 5a69c88f6..3d23df13a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6061,7 +6061,8 @@ If FORCE-TAGS is non nil, the car of it returns the new tags." pl (org-get-at-bol 'prefix-length) undone-face (org-get-at-bol 'undone-face) done-face (org-get-at-bol 'done-face)) - (org-move-to-column pl) + (goto-char (+ (point) pl)) + ;; (org-move-to-column pl) FIXME: does the above line work correctly? (cond ((equal new "") (beginning-of-line 1)