Commit 932d0fdb authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

Fix debbugs#20146

* font-lock.el (font-lock-extend-jit-lock-region-after-change):
Return the calculated values, as per spec.
parent 1fcc552a
2015-03-20 Alan Mackenzie <acm@muc.de>
Fix debbugs#20146
* font-lock.el (font-lock-extend-jit-lock-region-after-change):
Return the calculated values, as per spec.
2015-03-20 Dmitry Gutov <dgutov@yandex.ru>
 
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit'
......
......@@ -1325,11 +1325,13 @@ This function does 2 things:
(when (memq 'font-lock-extend-region-wholelines
font-lock-extend-region-functions)
(goto-char beg)
(setq jit-lock-start (min jit-lock-start (line-beginning-position)))
(setq beg (min jit-lock-start (line-beginning-position)))
(goto-char end)
(setq jit-lock-end
(setq end
(max jit-lock-end
(if (bolp) (point) (line-beginning-position 2))))))))
(if (bolp) (point) (line-beginning-position 2)))))
(setq jit-lock-start beg
jit-lock-end end))))
(defun font-lock-fontify-block (&optional arg)
"Fontify some lines the way `font-lock-fontify-buffer' would.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment