* nlinum.el: Speed up by caching last line-number.
commitd54ab23862fd88295eb7a0bd0cd492232f317b36
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Oct 2012 19:29:40 +0000 (24 15:29 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Oct 2012 19:29:40 +0000 (24 15:29 -0400)
tree537bae4452d4f7a3ecc55a5032a686b6363bf7b4
parentbf5c58c0d8f9642023bf02eedd32971e7f3cf32c
* nlinum.el: Speed up by caching last line-number.
(nlinum--line-number-cache): New var.
(nlinum--after-change, nlinum--line-number-at-pos): New functions.
(nlinum-mode, nlinum--region): Use them.
packages/nlinum/nlinum.el