Fix behavior of `org-forward/backward-h-s-l' before first headline
authorBastien Guerry <bzg@altern.org>
Tue, 1 Jan 2013 22:49:12 +0000 (23:49 +0100)
committerBastien Guerry <bzg@altern.org>
Tue, 1 Jan 2013 22:49:12 +0000 (23:49 +0100)
commit2718888f8e4afcbecb608539b3f16414a7399d3d
tree66c213afa3d871d610b76161c8c46f2d75c2b3cd
parentbc0b22120347815195657bdee1df35b599e8abe0
Fix behavior of `org-forward/backward-h-s-l' before first headline

* org.el (org-forward-heading-same-level): Before the first
headline, go to the first headline.
(org-backward-heading-same-level): Before the first headline,
go to the beginning of the buffer, like
`outline-previous-visible-heading' does.
lisp/org.el