aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorMike Williams2002-04-14 12:50:10 +0000
committerMike Williams2002-04-14 12:50:10 +0000
commitca05be61ac6d9b527df14f667c447224b69a955d (patch)
tree27745b3361d244a6e8ac72128544bab63197a093 /lisp/textmodes
parent0e03b0c25fd697e58fccfe89c00ab0153d200cee (diff)
downloademacs-ca05be61ac6d9b527df14f667c447224b69a955d.tar.gz
emacs-ca05be61ac6d9b527df14f667c447224b69a955d.zip
(sgml-parse-tag-backward): Fix to work at beginning of buffer.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/sgml-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 2a410554de6..9ea5639c81e 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -976,7 +976,8 @@ With prefix argument, unquote the region."
976Assume that parsing starts from within a textual context. 976Assume that parsing starts from within a textual context.
977Leave point at the beginning of the tag." 977Leave point at the beginning of the tag."
978 (let (tag-type tag-start tag-end name) 978 (let (tag-type tag-start tag-end name)
979 (search-backward ">") 979 (or (search-backward ">" nil 'move)
980 (error "No tag found"))
980 (setq tag-end (1+ (point))) 981 (setq tag-end (1+ (point)))
981 (cond 982 (cond
982 ((sgml-looking-back-at "--") ; comment 983 ((sgml-looking-back-at "--") ; comment