Fix bug when demoting invisible headlinesrelease_8.2.5d
commit4a9820067a3fdb78c977a5077771b86d548764a4
authorBastien Guerry <bzg@altern.org>
Tue, 14 Jan 2014 11:38:50 +0000 (14 12:38 +0100)
committerBastien Guerry <bzg@altern.org>
Tue, 14 Jan 2014 11:38:50 +0000 (14 12:38 +0100)
tree355bd43f09ac2ea093d21ee62fb87e3adbab4c57
parent3f7822d31b2bd4f69e0760c183ae0e51f3b04ed7
Fix bug when demoting invisible headlines

* org.el (org-demote): Ignore invisible text when aligning
tags.
(org-set-tags): When JUST-ALIGN is 'ignore-column, ignore
invisible text when restoring the cursor to the correct
column.

This fixes a bug about demoting hidden headlines.
If org-move-to-column temporarily ignore visibility
specs, this will prevent org-demote to work correctly
in hidden regions.

Thanks to Susan Cragin for reporting this bug.
lisp/org.el