(sgml-guess-indent): Look further into the buffer.
This commit is contained in:
parent
754774523d
commit
232dbe4f66
2 changed files with 6 additions and 1 deletions
|
@ -1235,7 +1235,7 @@ Add this to `sgml-mode-hook' for convenience."
|
|||
(interactive)
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(if (re-search-forward "^\\([ \t]+\\)<" 100 'noerror)
|
||||
(if (re-search-forward "^\\([ \t]+\\)<" 500 'noerror)
|
||||
(progn
|
||||
(set (make-local-variable 'sgml-basic-offset)
|
||||
(length (match-string 1)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue