mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-31 17:30:54 -08:00
(sgml-parse-tag-backward): Fix to work at beginning of buffer.
This commit is contained in:
parent
0e03b0c25f
commit
ca05be61ac
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue