]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/texinfo.el
Fix problems caused by new implementation of sub-word mode
[gnu-emacs] / lisp / textmodes / texinfo.el
index 12a991163b3fdd251f326349a38a8f1dace92f24..ed6022f9fbb40d98a21e401e031aa2a938000d3d 100644 (file)
@@ -393,7 +393,7 @@ Subexpression 1 is what goes into the corresponding `@end' statement.")
        (unless (get-char-property start 'text-clones)
          (if endp
              (texinfo-last-unended-begin)
-           (forward-word 1)
+           (forward-word-strictly 1)
            (texinfo-next-unmatched-end))
          (skip-syntax-forward "^w")
          (when (looking-at
@@ -738,7 +738,7 @@ With prefix argument or inside @code or @example, inserts a plain \"."
   "Insert the matching `@end' for the last Texinfo command that needs one."
         (ignore-errors
           (save-excursion
-      (backward-word 1)
+             (backward-word-strictly 1)
             (texinfo-last-unended-begin)
       (or (match-string 1) '-)))
   \n "@end " str \n \n)