Fix tags alignment when headline contains invisible text
commitb3c556d83ac5407aa250557d4bec89aef238684f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Sep 2016 22:56:58 +0000 (30 00:56 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Sep 2016 22:58:21 +0000 (30 00:58 +0200)
tree0e0ffe0142c18950daca361d9756f64177b786ba
parent12196b84726f88d16f273752966a8efbca144188
Fix tags alignment when headline contains invisible text

* lisp/org.el (org-align-tags-here): Do not use `org-move-to-column',
  which may move point on the other side of some invisible text.
  Refactor code.

* testing/lisp/test-org.el (test-org/tag-align): Add test.

Reported-by: Michael Fiano <michael.fiano@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109435>
lisp/org.el
testing/lisp/test-org.el