* wesnoth-mode.el (wesnoth-indent-preprocessor-bol, wesnoth-indent-savefile):
commitafa019d8fc05229ba1a9b7c132019a6e73acb7bd
authorChris Mann <chris@gnawty.home>
Wed, 23 Jan 2008 05:10:52 +0000 (23 15:40 +1030)
committerChris Mann <chris@gnawty.home>
Wed, 23 Jan 2008 05:10:52 +0000 (23 15:40 +1030)
treeced90eee713089faeac238167adfbbe19e63a76a
parent19c1097ba1dd2564cc5689496c6a7ab077a1b2a8
* wesnoth-mode.el (wesnoth-indent-preprocessor-bol, wesnoth-indent-savefile):
New variables to handle indentation.
  (wesnoth-indentation-function, wesnoth-indent-line,
wesnoth-indent-withtags-inline, wesnoth-indent-default-inline,
wesnoth-indent-withtags, wesnoth-indent-default): Removed.
  (wesnoth-element-closing, wesnoth-element-opening, wesnoth-element): Use
wesnoth-indent-preprocessor-bol.
  (wesnoth-newline): Don't attempt indent on empty line (creates trailing
  whitespace).
  (wesnoth-indent): Use wesnoth-indent-preprocessor-bol and
wesnoth-indent-savefile.
  (wesnoth-within-define): Better handle specific areas.
  (wesnoth-check-structure): Use a more advanced (less redundant) method of
selection for some preprocessor statements.
wesnoth-mode.el