# HG changeset patch # User Mike Williams # Date 1018788579 0 # Node ID aca4f7ef2d568f5d4ecf5be3bdd46b18238b4a5d # Parent ab6889b1c70568aa9a7ed7babcbc1ce5a1492f70 (sgml-parse-tag-backward): Fix to work at beginning of buffer. diff -r ab6889b1c705 -r aca4f7ef2d56 lisp/textmodes/sgml-mode.el --- a/lisp/textmodes/sgml-mode.el Sun Apr 14 08:18:02 2002 +0000 +++ b/lisp/textmodes/sgml-mode.el Sun Apr 14 12:49:39 2002 +0000 @@ -976,7 +976,8 @@ Assume that parsing starts from within a textual context. Leave point at the beginning of the tag." (let (tag-type tag-start tag-end name) - (search-backward ">") + (or (search-backward ">" nil 'move) + (error "No tag found")) (setq tag-end (1+ (point))) (cond ((sgml-looking-back-at "--") ; comment