Fix org-backward-element with point on first element in section
commit664132667b05d1e7d7c9c3466b341b1588784e42
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 26 Aug 2012 21:32:46 +0000 (26 23:32 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 26 Aug 2012 21:44:51 +0000 (26 23:44 +0200)
tree250fd3eb10bcec198eac3baff65e8ccd6ffb4899
parent3404ac84ec933877bf78b7f821c26be89f5faca9
Fix org-backward-element with point on first element in section

* lisp/org.el (org-backward-element): When called at the beginning of
  first element in section, the function shouldn't return an error but
  move point to headline or point-min instead.
* testing/lisp/test-org.el: Add test.
lisp/org.el
testing/lisp/test-org.el