]> git.eshelyaron.com Git - emacs.git/commitdiff
(sgml-parse-tag-backward): Fix to work at beginning of buffer.
authorMike Williams <mdub@bigfoot.com>
Sun, 14 Apr 2002 12:50:10 +0000 (12:50 +0000)
committerMike Williams <mdub@bigfoot.com>
Sun, 14 Apr 2002 12:50:10 +0000 (12:50 +0000)
lisp/ChangeLog
lisp/textmodes/sgml-mode.el

index 8ebe8a200b26a3e20024d5a9dec96b4acaf85d77..fb4bf401dc6d577897039f8e787a5edac2bf64d3 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-14  Mike Williams  <mdub@bigfoot.com>
+
+       * textmodes/sgml-mode.el (sgml-parse-tag-backward): Fix to work at
+       beginning of buffer.
+
 2002-04-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * speedbar.el (speedbar-generic-item-info)
index 2a410554de667b95b54816c30280c10ede01b2b8..9ea5639c81e379c4384cb1fab427fe7c91be58a9 100644 (file)
@@ -976,7 +976,8 @@ With prefix argument, unquote the region."
 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