HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(sgml-guess-indent): Handle tabs correctly.
[bpt/emacs.git]
/
lisp
/
textmodes
/
sgml-mode.el
diff --git
a/lisp/textmodes/sgml-mode.el
b/lisp/textmodes/sgml-mode.el
index
bad9dcc
..
f5bd323
100644
(file)
--- a/
lisp/textmodes/sgml-mode.el
+++ b/
lisp/textmodes/sgml-mode.el
@@
-1288,7
+1288,7
@@
Add this to `sgml-mode-hook' for convenience."
(if (re-search-forward "^\\([ \t]+\\)<" 500 'noerror)
(progn
(set (make-local-variable 'sgml-basic-offset)
- (
length (match-string 1
)))
+ (
1- (current-column
)))
(message "Guessed sgml-basic-offset = %d"
sgml-basic-offset)
))))