*** textmodes/sgml-mode.el.~1.136.~ 2008-07-05 06:26:11.000000000 +0200 --- textmodes/sgml-mode.el 2008-09-18 10:07:18.000000000 +0200 *************** *** 784,790 **** (with-syntax-table sgml-tag-syntax-table (up-list -1) (when (sgml-skip-tag-forward 1) ! (backward-sexp 1) (forward-char 2) t)))) (clones (get-char-property (point) 'text-clones))) --- 784,790 ---- (with-syntax-table sgml-tag-syntax-table (up-list -1) (when (sgml-skip-tag-forward 1) ! (goto-char (or (scan-sexps (point) -1) (point-min))) (forward-char 2) t)))) (clones (get-char-property (point) 'text-clones))) *************** *** 1223,1229 **** (with-syntax-table sgml-tag-syntax-table (goto-char tag-end) (condition-case nil ! (backward-sexp) (scan-error ;; This > isn't really the end of a tag. Skip it. (goto-char (1- tag-end)) --- 1223,1229 ---- (with-syntax-table sgml-tag-syntax-table (goto-char tag-end) (condition-case nil ! (goto-char (or (scan-sexps (point) -1) (point-min))) (scan-error ;; This > isn't really the end of a tag. Skip it. (goto-char (1- tag-end))