0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 19:02:52 +00:00

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)
This commit is contained in:
Carsten Dominik 2009-09-28 20:30:16 +01:00
parent 201517106c
commit 0a0a9e5366
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2009-09-28 Carsten Dominik <carsten.dominik@gmail.com>
* 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.

View file

@ -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)