(ruby-add-log-current-method): Improve performance at the expense
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)
commit71a048c16b1a3c8708c161b38e52155b77d0ea60
tree84895b1fc0a34f1b914a08fd04c9fd2398f8fcf1
parent53ca88c478b773f2b56084442c8d17e83577f52c
(ruby-add-log-current-method): Improve performance at the expense
of accuracy.  `ruby-block-contains-point' is relatively slow, so
only use it for method and singleton class blocks.

* test/automated/ruby-mode-tests.el
(ruby-add-log-current-method-after-inner-class): Lower
expectations: move point inside a method, initially.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el