Wesnoth-mode 1.1.2 is now available.
Support for preprocessor statements has been added to jumping commands. You are now able to jump, for example, from `#define' to it's matching `#enddef' via C-c C-m, as well as move across them in the same way in which you can tags via C-M-e and C-M-a. Additionally, it's now possible to jump to the matching element without a tag or preprocessor statement being on the current line - the element prior to point is now the source of the jump.
Support for preprocessor statements was also added to the new structure checking functionality. This will ensure all preprocessor statements nest nicely with tags and each other. Structure checks should now provide more useful feedback in some circumstances and will no longer produce a success message if no problems were detected.
The ability to fix WML structure automatically has been added to complement structure checking. Bound to C-c C-f by default, the command will seek errors in the structure and insert elements into the appropriate position(s) as well as removing excess elements from the end of a buffer. Although this command will repair the buffer structure, that does not necessarily mean it will insert elements where you want them; use this feature wisely.
The variable `wesnoth-auto-indent' has been renamed to `wesnoth-auto-indent-flag', if you've customised this variable, ensure that the name is updated. `wesnoth-indent-style-savefile' is now deprecated (support will be removed in the next release), instead use `wesnoth-indentation-function' whose value is the name of a function. For example, adding to your .emacs:
- Code: Select all • Expand
(setq wesnoth-indentation-function 'wesnoth-indent-line-savefile)
will use savefile indentation over default indentation. If you rather default indentation, this is the default and you need not set anything.
In addition to these changes, a large portion of the code been revised which should lead to the correction of a few minor bugs, increased consistency, and a small performance boost.
EDIT: 22.214.171.124 fixes several minor bugs in the default indentation.