* wesnoth-mode.el (wesnoth-find-next, wesnoth-partial-macro-p,
wesnoth-forward-warning, wesnoth-backward-warning, wesnoth-mode): Tidied.
(wesnoth-element-type): Removed usage of `return'.
(wesnoth-estimate-element-type): Save-excursion and start at given point.
(wesnoth-guess-element-type): Updated docstring.
(wesnoth-indent-or-complete): Revert back to `eq' usage.
(wesnoth-insert-missing-closing): Prevent byte-compile warnings when
transient-mark-mode is unavailable.
(wesnoth-determine-context): Replaced `subseq' with `substring'.
(wesnoth-extract-macro-details): Removed optional third argument to
`split-string'. Not support under some versions of Emacs.
(wesnoth-locate-warning): Return target.
(wesnoth-check-wml): `remove-overlays' may not be available. Use more
portable `delete-overlay'. Improved checking of FOREACH..NEXT.