1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-29 11:02:33 +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> 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 * org-latex.el (org-export-latex-preprocess): Deal properly with
empty lines in verse environments. 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) pl (org-get-at-bol 'prefix-length)
undone-face (org-get-at-bol 'undone-face) undone-face (org-get-at-bol 'undone-face)
done-face (org-get-at-bol 'done-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 (cond
((equal new "") ((equal new "")
(beginning-of-line 1) (beginning-of-line 1)