aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Williams2002-05-22 09:40:48 +0000
committerMike Williams2002-05-22 09:40:48 +0000
commit232dbe4f66c1cf38a9c42f4d598412cc6dc02fc0 (patch)
tree46ca83bd8e924a796399fb81cee662a9ecf311e0
parent754774523d5dab0d951794db9169f6051e329045 (diff)
downloademacs-232dbe4f66c1cf38a9c42f4d598412cc6dc02fc0.tar.gz
emacs-232dbe4f66c1cf38a9c42f4d598412cc6dc02fc0.zip
(sgml-guess-indent): Look further into the buffer.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/sgml-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ec410602e6..a35caa9d765 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-05-22 Mike Williams <mdub@bigfoot.com>
2
3 * textmodes/sgml-mode.el (sgml-guess-indent): Look further into
4 the buffer.
5
12002-05-21 Markus Rost <rost@math.ohio-state.edu> 62002-05-21 Markus Rost <rost@math.ohio-state.edu>
2 7
3 * lpr.el: Fix typo in Commentary section. 8 * lpr.el: Fix typo in Commentary section.
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 58aec14b48b..a9e13c7c491 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1235,7 +1235,7 @@ Add this to `sgml-mode-hook' for convenience."
1235 (interactive) 1235 (interactive)
1236 (save-excursion 1236 (save-excursion
1237 (goto-char (point-min)) 1237 (goto-char (point-min))
1238 (if (re-search-forward "^\\([ \t]+\\)<" 100 'noerror) 1238 (if (re-search-forward "^\\([ \t]+\\)<" 500 'noerror)
1239 (progn 1239 (progn
1240 (set (make-local-variable 'sgml-basic-offset) 1240 (set (make-local-variable 'sgml-basic-offset)
1241 (length (match-string 1))) 1241 (length (match-string 1)))