Speed improvement
commit8720c4980724229545755b08fbac1724cd2e74be
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 10 Jan 2014 10:22:49 +0000 (10 11:22 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 10 Jan 2014 10:22:49 +0000 (10 11:22 +0100)
treef469b747a2c1ffda3cce02fbbc0cdc83382a6c60
parent432decf7257bae34d0d2cdf0bbce2cefde6b51c3
Speed improvement

* lisp/org.el (org-get-previous-line-level): Do not call
  `org-current-level' twice unless necessary.  Also, avoid using
  `line-number-at-pos' when the information needed is to know if point
  is in the first line of the visible part of the buffer.
lisp/org.el