wesnoth-mode.git
14 years agoAdd 2010 to copyright periodmaster
Chris Mann [Thu, 31 Dec 2009 13:30:17 +0000 (1 00:00 +1030)]
Add 2010 to copyright period

14 years agoAdd type and group information to `wesnoth-allow-accurate-validation'.
Chris Mann [Tue, 29 Sep 2009 13:28:43 +0000 (29 22:58 +0930)]
Add type and group information to `wesnoth-allow-accurate-validation'.

* wesnoth-mode.el (wesnoth-allow-accurate-validation): Add type and group
  properties.

14 years agoUpdate syntax table.
Chris Mann [Tue, 29 Sep 2009 13:27:21 +0000 (29 22:57 +0930)]
Update syntax table.

* wesnoth-mode.el (wesnoth-syntax-table): Updated.
  (wesnoth-syntactic-keywords): Separated elements to better indicate syntax.

14 years agoMinor improvements to documentation.
Chris Mann [Tue, 29 Sep 2009 13:26:26 +0000 (29 22:56 +0930)]
Minor improvements to documentation.

* wesnoth-mode.el (wesnoth-allow-accurate-validation, wesnoth-element-opening,
  wesnoth-element): Updated docstring.

14 years agoAdd support for alternate completion functions. Ido now supported.
Chris Mann [Wed, 29 Jul 2009 10:58:12 +0000 (29 20:28 +0930)]
Add support for alternate completion functions.  Ido now supported.

* wesnoth-mode.el (wesnoth-use-alternate-completion): New customisable
  variable.
  (wesnoth-completion-method): New macro.
  (wesnoth-element-completion, wesnoth-insert-tag): Use it.

14 years ago*WML* buffer can now be buried via 'q'.
Chris Mann [Wed, 29 Jul 2009 09:46:44 +0000 (29 19:16 +0930)]
*WML* buffer can now be buried via 'q'.

* wesnoth-mode.el (wesnoth-check-wml): Allow buffer to be buried via 'q'.
  (wesnoth-check-directory): Add TODO note.

15 years ago* wesnoth-mode.texi: Minor rewording.
Chris Mann [Tue, 24 Mar 2009 02:14:52 +0000 (24 12:44 +1030)]
* wesnoth-mode.texi: Minor rewording.

* wesnoth-wml-data.el: Updated for 1.6.

15 years ago* wesnoth-mode.el (wesnoth-allow-accurate-validation): New custom variable.
Chris Mann [Tue, 24 Mar 2009 01:45:43 +0000 (24 12:15 +1030)]
* wesnoth-mode.el (wesnoth-allow-accurate-validation): New custom variable.
  (wesnoth-found-cfgs): Moved from wesnoth-update.el.
  (wesnoth-find-previous): New function.
  (wesnoth-previous-element): New function.
  (wesnoth-parent-tag): Allow more precise parent detection.
  (wesnoth-check-element-type): Allow more precise parent detection.
  (wesnoth-check-output): Include buffer name in erorr.
  (wesnoth-check-wml): Support checking of multiple files.  Improve error
  messages.  Fix a bug where with window on the left would be incorrectly
  formatted.
  (wesnoth-check-directory): New command.
  (wesnoth-file-cfg-p, wesnoth-fetch-all-dirs, wesnoth-files-in-dir,
  wesnoth-cfg-files-in-dir): Moved from wesnoth-update.el.

* wesnoth-update.el (wesnoth-macro-directory): Removed.  No longer required.
  (wesnoth-file-cfg-p, wesnoth-fetch-all-dirs, wesnoth-files-in-dir,
  wesnoth-cfg-files-in-dir): Moved to wesnoth-mode.el.
  (wesnoth-determine-macro-information): Update docstring.
  (wesnoth-extract-tag-information): Also determine macro information.
  (wesnoth-update): Remove macro fetching -- performed elsewhere.

15 years ago* wesnoth-mode.texi: Improved formatting.
Chris Mann [Mon, 16 Mar 2009 13:19:08 +0000 (16 23:49 +1030)]
* wesnoth-mode.texi: Improved formatting.
  (WMLVERSION): 1.5.14.

* wesnoth-wml-data.el: Updated for 1.5.14.

15 years ago* wesnoth-mode.el (wesnoth-font-lock-keywords, wesnoth-down-list,
Chris Mann [Mon, 16 Mar 2009 13:15:30 +0000 (16 23:45 +1030)]
* wesnoth-mode.el (wesnoth-font-lock-keywords, wesnoth-down-list,
  wesnoth-check-wml): Add support for attributes where keys are separated from
  `=' by whitespace.

15 years ago* wesnoth-mode.el (wesnoth-mark-block): Ensure point remains. Skip to the
Chris Mann [Thu, 12 Mar 2009 12:07:56 +0000 (12 22:37 +1030)]
* wesnoth-mode.el (wesnoth-mark-block): Ensure point remains.  Skip to the
  start of the next non-blank line where necessary.

* wesnoth-mode.texi (Indentation): Minor clean-up.
  (Editing Extras): Document prefix argument to `C-M-k'.

15 years ago* wesnoth-mode.el (wesnoth-kill-block): Add support for prefix arg and
Chris Mann [Thu, 12 Mar 2009 11:59:25 +0000 (12 22:29 +1030)]
* wesnoth-mode.el (wesnoth-kill-block): Add support for prefix arg and
  improve.
  (wesnoth-forward-list, wesnoth-backward-list): Tidied.
  (wesnoth-mode-version): Updated to 1.3.5+git.

15 years ago* wesnoth-mode.texi: Fix referencing and add section for Addition File.
Chris Mann [Fri, 6 Mar 2009 07:40:08 +0000 (6 18:10 +1030)]
* wesnoth-mode.texi: Fix referencing and add section for Addition File.

15 years ago* wesnoth-mode.el (wesnoth-element-completion): Fix leaky macro. Fix a bug
Chris Mann [Wed, 4 Mar 2009 09:41:28 +0000 (4 20:11 +1030)]
* wesnoth-mode.el (wesnoth-element-completion): Fix leaky macro.  Fix a bug
  where when only a single element is available for insertion, nil is
  returned.

15 years ago* wesnoth-mode.el (wesnoth-complete-macro): No longer force macros to be
Chris Mann [Mon, 2 Mar 2009 04:54:00 +0000 (2 15:24 +1030)]
* wesnoth-mode.el (wesnoth-complete-macro): No longer force macros to be
  placed on a newline; insert at point.

15 years ago* wesnoth-mode.el (wesnoth-parent-tag): Fixed a bug where incorrectly
Chris Mann [Sun, 1 Mar 2009 22:28:31 +0000 (2 08:58 +1030)]
* wesnoth-mode.el (wesnoth-parent-tag): Fixed a bug where incorrectly
  formatted parent reference would be returned in some circumstances.

15 years ago* wesnoth-mode.texi, wesnoth-mode.el: Incorrect version. Now 1.3.5.1.3.5
Chris Mann [Fri, 27 Feb 2009 08:53:51 +0000 (27 19:23 +1030)]
* wesnoth-mode.texi, wesnoth-mode.el: Incorrect version.  Now 1.3.5.

15 years ago* wesnoth-mode.el (wesnoth-mode-version): Updated to 1.3.6-git.
Chris Mann [Fri, 27 Feb 2009 08:50:58 +0000 (27 19:20 +1030)]
* wesnoth-mode.el (wesnoth-mode-version): Updated to 1.3.6-git.

* wesnoth-mode.texi: Updated version.  Fixed two typos.

15 years ago* wesnoth-mode.el: Updated version to 1.3.6.1.3.6
Chris Mann [Fri, 27 Feb 2009 08:24:01 +0000 (27 18:54 +1030)]
* wesnoth-mode.el: Updated version to 1.3.6.

* wesnoth-mode.texi: Updated version.  Minor formatting change.

15 years ago* wesnoth-mode.texi: Reworded some sections.
Chris Mann [Fri, 27 Feb 2009 08:17:53 +0000 (27 18:47 +1030)]
* wesnoth-mode.texi: Reworded some sections.
  (Addition File): New section.  Split from Wesnoth Update.  Reworded.
  (WMLVERSION): New variable.
  (Wesnoth Update): Reword section and state version of WML used.

15 years ago* wesnoth-mode.texi (Editing Extras): New section. Stub.
Chris Mann [Thu, 26 Feb 2009 12:45:33 +0000 (26 23:15 +1030)]
* wesnoth-mode.texi (Editing Extras): New section.  Stub.

15 years ago* wesnoth-mode.texi: Fix incorrect sectioning reference. Remove hyphen from
Chris Mann [Thu, 26 Feb 2009 12:38:44 +0000 (26 23:08 +1030)]
* wesnoth-mode.texi: Fix incorrect sectioning reference.  Remove hyphen from
  `tab-completion'.

15 years ago* wesnoth-mode.el: Updated description and changelog.
Chris Mann [Thu, 26 Feb 2009 12:34:14 +0000 (26 23:04 +1030)]
* wesnoth-mode.el: Updated description and changelog.

* wesnoth-mode.texi: Minor clean-up and formatting improvements.

15 years ago* wesnoth-mode.texi: More concise wording: WML checking -> WML validation.
Chris Mann [Thu, 26 Feb 2009 12:00:10 +0000 (26 22:30 +1030)]
* wesnoth-mode.texi: More concise wording: WML checking -> WML validation.

15 years ago* wesnoth-mode.el (wesnoth-kill-block, wesnoth-mark-block): New commands.
Chris Mann [Thu, 26 Feb 2009 10:07:48 +0000 (26 20:37 +1030)]
* wesnoth-mode.el (wesnoth-kill-block, wesnoth-mark-block): New commands.
  (wesnoth-mode-map): Add bindings for these.

15 years ago* wesnoth-mode.el (wesnoth-backward-up-list): Move back to indentation for
Chris Mann [Thu, 26 Feb 2009 09:03:56 +0000 (26 19:33 +1030)]
* wesnoth-mode.el (wesnoth-backward-up-list): Move back to indentation for
  each iteration and only when command has moved up one level.

15 years ago* wesnoth-mode.el: Fix incorrect bug description in history.
Chris Mann [Thu, 26 Feb 2009 08:58:46 +0000 (26 19:28 +1030)]
* wesnoth-mode.el: Fix incorrect bug description in history.
  (wesnoth-down-list): Notify when unable to move any further in the requested
  direction.  Fix a bug where point would continue to move unnecessarily when
  at the last element.
  (wesnoth-backward-up-list, wesnoth-forward-list, wesnoth-backward-list):
  Notify when unable to move any further in the requested direction.

15 years ago* wesnoth-update.el: Fix several over-long lines.
Chris Mann [Thu, 26 Feb 2009 08:37:51 +0000 (26 19:07 +1030)]
* wesnoth-update.el: Fix several over-long lines.

15 years ago* wesnoth-wml-additions.cfg: Add `require_era' attribute to `era' tag.
Chris Mann [Thu, 26 Feb 2009 08:34:05 +0000 (26 19:04 +1030)]
* wesnoth-wml-additions.cfg: Add `require_era' attribute to `era' tag.

15 years ago* wesnoth-wml-data.el: Updated for WML used in Wesnoth 1.5.11.
Chris Mann [Thu, 26 Feb 2009 08:31:50 +0000 (26 19:01 +1030)]
* wesnoth-wml-data.el: Updated for WML used in Wesnoth 1.5.11.

15 years ago* wesnoth-mode.texi (DATE): Updated month.
Chris Mann [Wed, 25 Feb 2009 11:37:58 +0000 (25 22:07 +1030)]
* wesnoth-mode.texi (DATE): Updated month.
  (titlepage): Use value of AUTHOR.
  (Getting Started): Minor revision to wording of git repo checkout
  instructions.
  (Indentation): Removed unused @kindex.

15 years ago* wesnoth-mode.el: Fix over-long lines.
Chris Mann [Wed, 25 Feb 2009 11:35:57 +0000 (25 22:05 +1030)]
* wesnoth-mode.el: Fix over-long lines.
  (wesnoth-forward-list, wesnoth-backward-list): Updated docstrings.

15 years ago* wesnoth-mode.texi (Navigation): Added introduction to section. Added
Chris Mann [Wed, 25 Feb 2009 11:03:44 +0000 (25 21:33 +1030)]
* wesnoth-mode.texi (Navigation): Added introduction to section.  Added
  documentation for new structured navigation commands.

15 years ago* wesnoth-mode.el: Updated history.
Chris Mann [Wed, 25 Feb 2009 10:44:32 +0000 (25 21:14 +1030)]
* wesnoth-mode.el: Updated history.
  (wesnoth-mode-map): Added bindings for new navigation commands.
  (wesnoth-parent-tag): Fixed a bug when #define..#enddef was between point
  and parent element.
  (wesnoth-down-list, wesnoth-backward-up-list, wesnoth-forward-list,
  wesnoth-backward-list): New commands.

15 years ago* wesnoth-mode.el: Added recent changes to history.
Chris Mann [Sat, 21 Feb 2009 08:07:36 +0000 (21 18:37 +1030)]
* wesnoth-mode.el: Added recent changes to history.
  (wesnoth-mode-version): Updated to 1.3.5-git.

15 years ago* wesnoth-mode.texi (VERSION): Updated to 1.3.5-git.
Chris Mann [Sat, 21 Feb 2009 08:06:40 +0000 (21 18:36 +1030)]
* wesnoth-mode.texi (VERSION): Updated to 1.3.5-git.
  (Getting Started): Added information for public git repository.
  (Indentation): Revised wording and reorganised.
  (Navigation): Minor wording revision.

15 years ago* wesnoth-mode.el (wesnoth-insert-tag, wesnoth-insert-missing-closing): Fix
Chris Mann [Fri, 20 Feb 2009 11:27:12 +0000 (20 21:57 +1030)]
* wesnoth-mode.el (wesnoth-insert-tag, wesnoth-insert-missing-closing): Fix
  '+' tags being closed with incorrect tag.

15 years ago* wesnoth-mode.el: Reindented some portions indented with tabs to spaces.1.3.4a
Chris Mann [Wed, 14 Jan 2009 23:54:44 +0000 (15 10:24 +1030)]
* wesnoth-mode.el: Reindented some portions indented with tabs to spaces.

15 years ago* wesnoth-mode.texi: Minor indentation change.
Chris Mann [Wed, 14 Jan 2009 23:53:19 +0000 (15 10:23 +1030)]
* wesnoth-mode.texi: Minor indentation change.

* wesnoth-wml-additions: Added some message attributes.

15 years ago* wesnoth-mode.el (wesnoth-element-opening, wesnoth-element): Added #else when
Chris Mann [Wed, 14 Jan 2009 23:52:40 +0000 (15 10:22 +1030)]
* wesnoth-mode.el (wesnoth-element-opening, wesnoth-element): Added #else when
  wesnoth-indent-preprocessor-bol is nil (and with limited match).
  (wesnoth-indent): Added #else support when wesnoth-indent-preprocessor-bol
  is nil.
  (wesnoth-determine-context): Added context support for #else when
  wesnoth-indent-preprocessor-bol is nil.

15 years ago* wesnoth-mode.el (wesnoth-mode-version): 1.3.4a.
Chris Mann [Wed, 14 Jan 2009 23:35:58 +0000 (15 10:05 +1030)]
* wesnoth-mode.el (wesnoth-mode-version): 1.3.4a.
  (wesnoth-element, wesnoth-element-closing, wesnoth-element-opening): Add
  #ifdef preprossor macros when wesnoth-indent-preprocessor-bol is nil.
  (wesnoth-active-parent-tag): Fixed a bug when immediately within a
  preprocessor statement.
  (wesnoth-indent): Add support for indenting elements relative to #ifdef when
  wesnoth-indent-preprocessor-bol.
  (wesnoth-determine-context): Fix a bug where too much was taken from the end
  of the wesnoth-element regexp, which could result in malformed regexp.  Add
  support for getting the context of #ifdef preprocessor statements when
  wesnoth-indent-preprocessor-bol is nil.

15 years ago* wesnoth-mode.el (wesnoth-insert-missing-closing): Remove debugging info.1.3.4
Chris Mann [Sun, 4 Jan 2009 06:08:35 +0000 (4 16:38 +1030)]
* wesnoth-mode.el (wesnoth-insert-missing-closing): Remove debugging info.

15 years ago* wesnoth-wml-additions.cfg: Remove attributes already known.
Chris Mann [Sun, 4 Jan 2009 02:29:39 +0000 (4 12:59 +1030)]
* wesnoth-wml-additions.cfg: Remove attributes already known.

15 years ago* wesnoth-mode.el (wesnoth-mode-version): 1.3.4.
Chris Mann [Sun, 4 Jan 2009 02:22:09 +0000 (4 12:52 +1030)]
* wesnoth-mode.el (wesnoth-mode-version): 1.3.4.

15 years ago* wesnoth-mode.el: Updated copyright information.
Chris Mann [Sun, 4 Jan 2009 02:19:28 +0000 (4 12:49 +1030)]
* wesnoth-mode.el: Updated copyright information.

* wesnoth-mode.texi: Updated copyright information and date.

* wesnoth-update.el (wesnoth-create-wml-hash-table, wesnoth-macro-additions,
  wesnoth-merge-macro-data, wesnoth-merge-tag-data,
  wesnoth-update-project-information, wesnoth-refresh-wml-data): Updated
  doc-strings.

15 years ago* wesnoth-mode.texi: Updated version to 1.3.4.
Chris Mann [Sun, 4 Jan 2009 02:07:01 +0000 (4 12:37 +1030)]
* wesnoth-mode.texi: Updated version to 1.3.4.
  (Indentation): Documented section.
  (Navigation): Removed overly-simple introductory paragraph.
  (Wesnoth Update): Adjusted for new method of updating the addition file.

15 years ago* wesnoth-mode.el: Updated changelog.
Chris Mann [Sun, 4 Jan 2009 01:22:56 +0000 (4 11:52 +1030)]
* wesnoth-mode.el: Updated changelog.

* wesnoth-update.el (wesnoth-determine-macro-information): No longer reset
  temporary data -- causes problems when reading multiple files.
  (wesnoth-update, wesnoth-update-project-information): Reset temporary data.

15 years ago* wesnoth-mode.el: Updated changelog.
Chris Mann [Sun, 4 Jan 2009 00:46:14 +0000 (4 11:16 +1030)]
* wesnoth-mode.el: Updated changelog.
  (wesnoth-insert-missing-closing): Improve positioning when prior to opening
  tag.
  (wesnoth-search-for-matching-tag): Changed from macro to function.

15 years ago* wesnoth-update.el (wesnoth-update-version): 0.1.4.
Chris Mann [Sat, 3 Jan 2009 23:48:44 +0000 (4 10:18 +1030)]
* wesnoth-update.el (wesnoth-update-version): 0.1.4.
  (wesnoth-determine-macro-information): Removed argument.  Now a function.
  (wesnoth-update-teach-wesnoth-mode, wesnoth-macro-additions,
  wesnoth-update-project-information): Updated accordingly.
  (wesnoth-determine-macro-builtins, wesnoth-update-teach-wesnoth-mode):
  Removed function.
  (wesnoth-update): Reset temporary data.

15 years ago* wesnoth-update.el (wesnoth-macro-additions): Fix superfluous paren.
Chris Mann [Sat, 3 Jan 2009 22:29:01 +0000 (4 08:59 +1030)]
* wesnoth-update.el (wesnoth-macro-additions): Fix superfluous paren.

15 years ago* wesnoth-mode.el (wesnoth-parent-tag): Now always returns a cons-cell.
Chris Mann [Sat, 3 Jan 2009 13:49:30 +0000 (4 00:19 +1030)]
* wesnoth-mode.el (wesnoth-parent-tag): Now always returns a cons-cell.
  (wesnoth-check-wml): Use wesnoth-tmp-tag-data to cache refreshed
  information.

15 years ago* wesnoth-mode.el (wesnoth-active-parent-tag): New function.
Chris Mann [Sat, 3 Jan 2009 13:40:51 +0000 (4 00:10 +1030)]
* wesnoth-mode.el (wesnoth-active-parent-tag): New function.
  (wesnoth-parent-tag): Return a cons-cell containing match and position,
  respectively.
  (wesnoth-complete-macro): Merge all information.
  (wesnoth-build-completion, wesnoth-check-element-type, wesnoth-check-wml,
  wesnoth-mode): Refresh WML data.

* wesnoth-update.el (wesnoth-tmp-tag-data, wesnoth-tmp-macro-data): New
  variables.
  (wesnoth-create-wml-hash-table): Take tag-data as an argument.
  (wesnoth-append-tag-information): Use temporary tag data.
  (wesnoth-update-wml-additions): Removed.
  (wesnoth-read-tmp-tag-data, wesnoth-tag-additions, wesnoth-macro-additions,
  wesnoth-merge-macro-data, wesnoth-merge-tag-data, wesnoth-refresh-wml-data):
  New functions.
  (wesnoth-update): No longer update from addition file.  Adjusted for new
  behaviour of wesnoth-append-tag-information.

* wesnoth-wml-data.el: Updated for 1.5.7.  Removed addition-file extras.

15 years ago* wesnoth-mode.el (wesnoth-complete-attribute): Ensure position exists before
Chris Mann [Mon, 29 Dec 2008 04:44:30 +0000 (29 15:14 +1030)]
* wesnoth-mode.el (wesnoth-complete-attribute): Ensure position exists before
  moving point.

15 years ago* wesnoth-mode.texi: Remove Key Index chapter references.
Chris Mann [Sun, 28 Dec 2008 13:39:02 +0000 (29 00:09 +1030)]
* wesnoth-mode.texi: Remove Key Index chapter references.

15 years ago* wesnoth-mode.texi: Remove key index.
Chris Mann [Sun, 28 Dec 2008 13:38:36 +0000 (29 00:08 +1030)]
* wesnoth-mode.texi: Remove key index.

15 years ago* wesnoth-mode.texi: Resection and added documentation for
Chris Mann [Sun, 28 Dec 2008 10:28:27 +0000 (28 20:58 +1030)]
* wesnoth-mode.texi: Resection and added documentation for
  wesnoth-indent-preprocessor-bol.

15 years ago* wesnoth-mode.el: Updated changelog.
Chris Mann [Sat, 27 Dec 2008 01:18:34 +0000 (27 11:48 +1030)]
* wesnoth-mode.el: Updated changelog.

15 years ago* wesnoth-mode.el (wesnoth-indent-preprocessor-bol): New custom variable.
Chris Mann [Sat, 27 Dec 2008 01:13:50 +0000 (27 11:43 +1030)]
* wesnoth-mode.el (wesnoth-indent-preprocessor-bol): New custom variable.
  (wesnoth-guess-element-type): Only match partial preprocessor statements.
  (wesnoth-complete-preprocessor): Fix a bug where the bound for the region
  to delete may be on the wrong side of point.
  (wesnoth-complete-tag): Fix a bug where details may not exist.
  (wesnoth-first-column-indent-p): Use `wesnoth-indent-preprocessor-bol'.
  (wesnoth-indent): Support #enddef when `wesnoth-indent-preprocessor-bol' is
  nil.

15 years ago* wesnoth-mode.el (wesnoth-complete-attribute, wesnoth-complete-tag): Fix a
Chris Mann [Wed, 24 Dec 2008 09:09:55 +0000 (24 19:39 +1030)]
* wesnoth-mode.el (wesnoth-complete-attribute, wesnoth-complete-tag): Fix a
  bug where not all completions may be found.
  (wesnoth-check-element-type): Ensure value exists before building.

15 years ago* wesnoth-mode.el (wesnoth-element-type): Allow matching of opening tags which
Chris Mann [Tue, 23 Dec 2008 22:04:25 +0000 (24 08:34 +1030)]
* wesnoth-mode.el (wesnoth-element-type): Allow matching of opening tags which
  have no indentation.
  (wesnoth-check-element-type): Fix a bug where attributes were not found when
  parent was `t'.

15 years ago* wesnoth-mode.el (wesnoth-element-type): Very minor tidying.
Chris Mann [Tue, 23 Dec 2008 13:19:58 +0000 (23 23:49 +1030)]
* wesnoth-mode.el (wesnoth-element-type): Very minor tidying.

* wesnoth-mode.texi: Various (usually minor) rewording of sections.  Added
  description of tab-based indentation and automatic indentation on newline.

15 years ago* wesnoth-mode.el (wesnoth-element-type): Fix a bug where incorrect matches could... 1.3.3a
Chris Mann [Tue, 23 Dec 2008 12:12:21 +0000 (23 22:42 +1030)]
* wesnoth-mode.el (wesnoth-element-type): Fix a bug where incorrect matches could occur.

15 years ago* wesnoth-mode.el (wesnoth-syntax-table): Really fix comment problem.
Chris Mann [Tue, 23 Dec 2008 08:18:01 +0000 (23 18:48 +1030)]
* wesnoth-mode.el (wesnoth-syntax-table): Really fix comment problem.

15 years ago* wesnoth-mode.el (wesnoth-mode-version): 1.3.3a.
Chris Mann [Tue, 23 Dec 2008 08:12:58 +0000 (23 18:42 +1030)]
* wesnoth-mode.el (wesnoth-mode-version): 1.3.3a.

15 years ago* wesnoth-mode.el (wesnoth-syntactic-keywords): Update doc-string.
Chris Mann [Tue, 23 Dec 2008 08:09:11 +0000 (23 18:39 +1030)]
* wesnoth-mode.el (wesnoth-syntactic-keywords): Update doc-string.

15 years ago* wesnoth-mode.el (wesnoth-syntax-table, wesnoth-syntactic-keywords): Fix a couple...
Chris Mann [Tue, 23 Dec 2008 08:07:49 +0000 (23 18:37 +1030)]
* wesnoth-mode.el (wesnoth-syntax-table, wesnoth-syntactic-keywords): Fix a couple of problems due to comments being incorrectly handled.

15 years ago* wesnoth-mode.el (wesnoth-newline): Update docstring.
Chris Mann [Mon, 22 Dec 2008 11:27:00 +0000 (22 21:57 +1030)]
* wesnoth-mode.el (wesnoth-newline): Update docstring.

* wesnoth-mode.texi (wesnoth-update): Fix error in example code.

15 years ago* wesnoth-wml-additions.cfg: Added `modulo' to `set_variable'.
Chris Mann [Fri, 19 Dec 2008 12:24:12 +0000 (19 22:54 +1030)]
* wesnoth-wml-additions.cfg: Added `modulo' to `set_variable'.

15 years ago* wesnoth-mode.texi: No longer hard-code version number in content.1.3.3
Chris Mann [Mon, 15 Dec 2008 10:23:48 +0000 (15 20:53 +1030)]
* wesnoth-mode.texi: No longer hard-code version number in content.

15 years ago* wesnoth-mode.el (wesnoth-insert-missing-closing): Docstring update.
Chris Mann [Mon, 15 Dec 2008 10:21:57 +0000 (15 20:51 +1030)]
* wesnoth-mode.el (wesnoth-insert-missing-closing): Docstring update.

15 years ago* wesnoth-mode.el (wesnoth-check-wml): Minor indentation fix.
Chris Mann [Mon, 15 Dec 2008 10:20:36 +0000 (15 20:50 +1030)]
* wesnoth-mode.el (wesnoth-check-wml): Minor indentation fix.

15 years ago* wesnoth-mode.el (wesnoth-indent, wesnoth-determine-context): Really fix
Chris Mann [Mon, 15 Dec 2008 10:13:10 +0000 (15 20:43 +1030)]
* wesnoth-mode.el (wesnoth-indent, wesnoth-determine-context): Really fix
  indentation.

15 years ago* wesnoth-mode.el (wesnoth-guess-element-type): Rewritten to avoid recursion.
Chris Mann [Mon, 15 Dec 2008 08:57:57 +0000 (15 19:27 +1030)]
* wesnoth-mode.el (wesnoth-guess-element-type): Rewritten to avoid recursion.
  (wesnoth-indent, wesnoth-determine-context): Fixed FOREACH..NEXT indentation
  when wesnoth-indent-savefile is nil.

15 years ago* wesnoth-mode.el (wesnoth-insert-tag): Fix bug where attribute could be
Chris Mann [Mon, 15 Dec 2008 07:55:49 +0000 (15 18:25 +1030)]
* wesnoth-mode.el (wesnoth-insert-tag): Fix bug where attribute could be
  inserted when a tag was unavailable in `wesnoth-complete-tag'.

15 years ago* wesnoth-mode.el (wesnoth-complete-macro): No longer place superfluous
Chris Mann [Mon, 15 Dec 2008 07:45:53 +0000 (15 18:15 +1030)]
* wesnoth-mode.el (wesnoth-complete-macro): No longer place superfluous
  whitespace after macro with single argument.

15 years ago* wesnoth-mode.el (wesnoth-element-closing): Minor regexp update.
Chris Mann [Sun, 14 Dec 2008 11:13:34 +0000 (14 21:43 +1030)]
* wesnoth-mode.el (wesnoth-element-closing): Minor regexp update.
  (wesnoth-indent-or-complete): Support new wesnoth-insert-missing-closing.
  (wesnoth-insert-missing-closing): Added support for completion.  Return
  match.
  (wesnoth-search-for-matching-tag): Skip is now numeric, skip lines as
  instructed.
  (wesnoth-jump-to-matching): Updated accordingly.

15 years ago* wesnoth-mode.el: Minor doc update.
Chris Mann [Sun, 14 Dec 2008 10:05:07 +0000 (14 20:35 +1030)]
* wesnoth-mode.el: Minor doc update.

* wesnoth-mode.texi: Minor wording changes and updated for changes to
  wesnoth-mode.el (wesnoth-insert-missing-closing in particular).  Noted that
  XEmacs may not use wesnoth-warning-face.

* wesnoth-wml-data.el: Updated.

15 years ago* wesnoth-mode.el (wesnoth-estimate-element-type): Fixed potential bug.
Chris Mann [Sun, 14 Dec 2008 06:32:14 +0000 (14 17:02 +1030)]
* wesnoth-mode.el (wesnoth-estimate-element-type): Fixed potential bug.
  (wesnoth-guess-element-type): Added `bound' argument for more efficiency.
  (wesnoth-indent-or-complete): Indent single closing element.
  (wesnoth-insert-missing-closing): Rewritten.  No longer uses
  `wesnoth-check-structure'.
  (wesnoth-navigate-element): Now a function; not a macro.
  (wesnoth-jump-to-matching): Support closing element as argument.
  (wesnoth-element-requires, wesnoth-structure-result,
  wesnoth-check-structure): Removed.

15 years ago* wesnoth-mode.el (wesnoth-guess-element-type): Minor clean-up.
Chris Mann [Sun, 14 Dec 2008 04:07:13 +0000 (14 14:37 +1030)]
* wesnoth-mode.el (wesnoth-guess-element-type): Minor clean-up.

15 years ago* wesnoth-mode.el (wesnoth-guess-element-type): Revised. Fixes beginning of
Chris Mann [Sun, 14 Dec 2008 04:00:09 +0000 (14 14:30 +1030)]
* wesnoth-mode.el (wesnoth-guess-element-type): Revised.  Fixes beginning of
  buffer bug.

15 years ago* wesnoth-mode.el (wesnoth-target-position, wesnoth-forward-warning,
Chris Mann [Sat, 13 Dec 2008 09:57:17 +0000 (13 20:27 +1030)]
* wesnoth-mode.el (wesnoth-target-position, wesnoth-forward-warning,
  wesnoth-backward-warning, wesnoth-mode): Improve support for overlay-less
  warning finding.

15 years ago* wesnoth-mode.el (wesnoth-mode-version): Updated version number.
Chris Mann [Sat, 13 Dec 2008 09:32:13 +0000 (13 20:02 +1030)]
* wesnoth-mode.el (wesnoth-mode-version): Updated version number.
  (wesnoth-warning-markers): New variable.
  (wesnoth-locate-warning): No longer display no warnings.  Handle elsewhere.
  (wesnoth-target-position): New function.
  (wesnoth-forward-warning, wesnoth-backward-warning): Use it.  Handle no
  warning output.
  (wesnoth-place-overlay): Add to `wesnoth-warning-markers' if overlays not
  supported.
  (wesnoth-check-wml): Clear `wesnoth-warning-markers' if overlays not
  supported.

15 years ago* wesnoth-mode.el (wesnoth-find-next, wesnoth-partial-macro-p,
Chris Mann [Sat, 13 Dec 2008 08:40:05 +0000 (13 19:10 +1030)]
* 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.

15 years ago* wesnoth-update.el (wesnoth-update-version): Updated to 0.1.3.
Chris Mann [Sat, 13 Dec 2008 08:30:04 +0000 (13 19:00 +1030)]
* wesnoth-update.el (wesnoth-update-version): Updated to 0.1.3.
  (wesnoth-output-path): Tided to prevent warnings when user-emacs-directory
  is not available.

15 years ago* wesnoth-mode.el (wesnoth-estimate-element-type, wesnoth-guess-element-type):
Chris Mann [Fri, 5 Dec 2008 13:48:16 +0000 (6 00:18 +1030)]
* wesnoth-mode.el (wesnoth-estimate-element-type, wesnoth-guess-element-type):
  New functions.
  (wesnoth-element-at-point): Removed function.
  (wesnoth-partial-macro-p): Removed unused variable.
  (wesnoth-indent-or-complete): Removed `looking-back' usage.  Use
  `wesnoth-guess-element-type'.  Improved behaviour when inserting closing.
  (wesnoth-complete-preprocessor): No longer require character after `#' to
  perform completion.
  (wesnoth-complete-macro): Delete only current partial element.  Save
  excursion when determining completion.
  (wesnoth-complete-attribute): Delete only the partial element.  Replaced
  `looking-back' usage.
  (wesnoth-complete-tag): Replaced `looking-back' usage.  Save-excursion when
  determining completion.  Delete only the partial element.
  (wesnoth-insert-tag): Quote wesnoth-history-list to fix a bug.  Delete
  unused variable.
  (wesnoth-insert-missing-closing): Tidied code for Emacsen missing
  functionality.  Return non-nil on success, nil otherwise.
  (wesnoth-nth-pair-position): Removed unused variable.
  (wesnoth-check-wml): Tided code for Emacsen missing functionality.  Fixed a
  bug where the last element would be reported for every missing element at
  EOF.
  (wesnoth-forward-warning, wesnoth-backward-warning, wesnoth-place-overlay,
  wesnoth-check-structure): Tidied code for Emacsen missing functionality.

15 years ago* wesnoth-mode.el (wesnoth-element): Removed FOREACH and NEXT. Interferes
Chris Mann [Mon, 1 Dec 2008 11:54:13 +0000 (1 22:24 +1030)]
* wesnoth-mode.el (wesnoth-element): Removed FOREACH and NEXT.  Interferes
  with other behaviour.
  (wesnoth-determine-context): Add FOREACH and NEXT when seaching.
  (wesnoth-check-wml): Added FOREACH and NEXT checking.

15 years ago* wesnoth-mode.el (wesnoth-element-closing): Removed NEXT due to differing indent
Chris Mann [Mon, 1 Dec 2008 11:19:38 +0000 (1 21:49 +1030)]
* wesnoth-mode.el (wesnoth-element-closing): Removed NEXT due to differing indent
  style.  NEXT should be indented a level deeper than FOREACH; not as a closing
  element.
  (wesnoth-complete-preprocessor, wesnoth-complete-macro,
  wesnoth-indent-or-complete): Eliminate possibility of an error.
  (wesnoth-indent, wesnoth-determine-context): Updated FOREACH..NEXT
  indentation style.

15 years ago* wesnoth-mode.el (wesnoth-check-wml): Fixed read-only status of *WML* buffer.
Chris Mann [Mon, 1 Dec 2008 10:56:35 +0000 (1 21:26 +1030)]
* wesnoth-mode.el (wesnoth-check-wml): Fixed read-only status of *WML* buffer.

15 years ago* wesnoth-mode.el: Updated changelog and fixed several docstrings.
Chris Mann [Mon, 1 Dec 2008 10:51:26 +0000 (1 21:21 +1030)]
* wesnoth-mode.el: Updated changelog and fixed several docstrings.
  (wesnoth-locate-warning): Renamed argument `search' to `string'.  Updated
  accordingly.

15 years ago* wesnoth-mode.texi: Revised wording and updated for progress on 1.3.3.
Chris Mann [Mon, 1 Dec 2008 10:47:23 +0000 (1 21:17 +1030)]
* wesnoth-mode.texi: Revised wording and updated for progress on 1.3.3.

15 years ago* wesnoth-mode.el (wesnoth-font-lock-keywords): Updated tag regexp not to match
Chris Mann [Mon, 1 Dec 2008 10:43:56 +0000 (1 21:13 +1030)]
* wesnoth-mode.el (wesnoth-font-lock-keywords): Updated tag regexp not to match
  arrays.
  (wesnoth-element-closing, wesnoth-element-opening, wesnoth-element): Added
  indentation support for FOREACH and NEXT macros.
  (wesnoth-element-completion): More reliably prompt.  No longer insert valid
  substring when there's a longer valid alternative.
  (wesnoth-partial-macro-p): Added multi-line support.
  (wesnoth-indent-or-complete): Only attempt macro completion when an
  incomplete macro precedes point.  Do not delete elements adjacent to the
  closing tag when completing.
  (wesnoth-complete-tag, wesnoth-complete-preprocessor,
  wesnoth-complete-attribute): No longer delete adjacent elements.
  (wesnoth-complete-macro): Ensure point does not go to to far forward when no
  arguments required for the macro.  No longer delete adjacent elements.
  (wesnoth-indent): Added support for FOREACH..NEXT indentation.
  (wesnoth-determine-context): Do not base context when tag is opened and
  closed immediately on the same line; search for previous element.  Added
  support for FOREACH..NEXT indentation.

15 years ago* wesnoth-mode.el (wesnoth-next-element): Improve movement across strings.
Chris Mann [Sat, 29 Nov 2008 05:53:30 +0000 (29 16:23 +1030)]
* wesnoth-mode.el (wesnoth-next-element): Improve movement across strings.
  (wesnoth-element-type): Improve detection of pathnames.
  (wesnoth-check-wml): Improve reporting of unknown macros.

15 years ago* wesnoth-mode.el (wesnoth-element-type): No longer treat pathnames as macros.
Chris Mann [Sat, 29 Nov 2008 05:32:03 +0000 (29 16:02 +1030)]
* wesnoth-mode.el (wesnoth-element-type): No longer treat pathnames as macros.

15 years ago* wesnoth-mode.el (wesnoth-find-next): New function.
Chris Mann [Sat, 29 Nov 2008 01:15:24 +0000 (29 11:45 +1030)]
* wesnoth-mode.el (wesnoth-find-next): New function.
  (wesnoth-next-element): Return element details and preserve the match-data.
  (wesnoth-element-type): Updated preprocessor and comment regexps.  Modify
  match-data as needed.
  (wesnoth-parent-tag): Return t if tag is immediately within a macro.
  (wesnoth-complete-tag): Bug reoccurred.  Hopefully now fixed.
  (wesnoth-find-macro-definitions): Updated regexp.
  (wesnoth-check-wml): Now checks every element.  Fixed a bug where
  preprocessor statements unmatched would be reported as closing tags.

15 years ago* wesnoth-mode.el: Updated history.
Chris Mann [Thu, 27 Nov 2008 12:25:09 +0000 (27 22:55 +1030)]
* wesnoth-mode.el: Updated history.
  (wesnoth-syntactic-keywords): No longer required preprocessor statements to
  start at BoL.
  (wesnoth-font-lock-keywords): No longer require tags to start at BoL.
  (wesnoth-next-element, wesnoth-element-type, wesnoth-get-element-type,
  wesnoth-element-at-point): New functions.
  (wesnoth-complete-tag): Updated to correspond to changes in
  wesnoth-element-completion.  Fixes a bug where non-completion could fail (do
  nothing).

15 years ago* wesnoth-update.el: Updated history.
Chris Mann [Tue, 25 Nov 2008 12:43:26 +0000 (25 23:13 +1030)]
* wesnoth-update.el: Updated history.

15 years ago* wesnoth-mode.el (wesnoth-check-display-type, wesnoth-idle-warning-timer,
Chris Mann [Tue, 25 Nov 2008 12:07:34 +0000 (25 22:37 +1030)]
* wesnoth-mode.el (wesnoth-check-display-type, wesnoth-idle-warning-timer,
  wesnoth-auto-check-timer, wesnoth-idle-warning-check,
  wesnoth-warnings-at-point): Removed.
  (wesnoth-check-output): Fixed a bug where line-numbers were incorrect.
  (wesnoth-check-process, wesnoth-check-wml): Removed support for varying
  output formats.
  (wesnoth-overlay-at-pos-p): New macro.
  (wesnoth-locate-warning): Use it.  Tidied and fixed several bugs.
  (wesnoth-forward-warning, wesnoth-backward-tag): Now behaves correctly.
  (wesnoth-place-overlay): Removed format-string, args and display arguments.
  No longer required.
  (wesnoth-mode): No longer initiate timer.

15 years ago* wesnoth-mode.el (wesnoth-complete-macro): Don't prompt when macro takes no
Chris Mann [Tue, 25 Nov 2008 09:44:09 +0000 (25 20:14 +1030)]
* wesnoth-mode.el (wesnoth-complete-macro): Don't prompt when macro takes no
  arguments.

15 years ago* wesnoth-mode.el (wesnoth-idle-warning-check): Fix obvious error.
Chris Mann [Tue, 25 Nov 2008 09:42:01 +0000 (25 20:12 +1030)]
* wesnoth-mode.el (wesnoth-idle-warning-check): Fix obvious error.

15 years ago* wesnoth-mode.el: Ensure error overlay properties are unique to wesnoth-mode
Chris Mann [Tue, 25 Nov 2008 09:28:13 +0000 (25 19:58 +1030)]
* wesnoth-mode.el: Ensure error overlay properties are unique to wesnoth-mode
  by renaming.