]> code.delx.au - gnu-emacs/blobdiff - lisp/simple.el
Fix problems caused by new implementation of sub-word mode
[gnu-emacs] / lisp / simple.el
index 72e87a410fc5e95744833ecc98e9ed9929b9073c..cfdea742084c2f87cf1b8462803e2395f2f4b115 100644 (file)
@@ -1170,7 +1170,7 @@ END, without printing any message."
             (save-restriction
               (narrow-to-region start end)
               (goto-char (point-min))
-              (while (forward-word 1)
+              (while (forward-word-strictly 1)
                 (setq words (1+ words)))))
           words))
        ((use-region-p)