Commit 166aaa37 authored by Daniel Colascione's avatar Daniel Colascione

Fix subword-mode motion

* lisp/progmodes/subword.el (subword-find-word-boundary): Move point to
correct spot before search.

Fixes: debbugs:17580
parent 8bb17f64
2014-05-24 Daniel Colascione <>
* progmodes/subword.el (subword-find-word-boundary): Move point to
correct spot before search. (Bug#17580)
* emacs-lisp/nadvice.el (defun): Write in eval-and-compile to avoid
breaking the build.
......@@ -355,8 +355,10 @@ searching subwords in order to avoid unwanted reentrancy.")
(if (< pos limit)
(goto-char pos)
(narrow-to-region (point-min) limit)
(funcall subword-forward-function))
(goto-char (1+ pos))
(narrow-to-region limit (point-max))
(funcall subword-backward-function))
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