GNU ELPA - wisi


Utilities for implementing an indentation/navigation engine using a generalized LR parser
wisi-3.1.8.tar, 2022-Jul-10, 3.46 MiB
Stephen Leake <>
Browse ELPA's repository
CGit or Gitweb
wisi wisitoken-user_guide

To install this package, run in Emacs:

M-x package-install RET wisi RET

Full description

Emacs wisi package 3.1.2

The wisi package provides utilities for using generalized
error-correcting LR parsers (in external processes) to do indentation,
fontification, and navigation; and integration with Emacs package.el.
See ada-mode for an example of its use.

It also provides wisitoken-parse_table-mode, for navigating the
diagnostic parse tables output by wisitoken-bnf-generate.

The generated code is in Ada; it requires the AdaCore gnat compiler
that you may not have installed. It is available in many packaging
systems, or as a binary download from

Old versions

wisi-3.1.7.tar.lz2021-Nov-24 299 KiB
wisi-3.1.6.tar.lz2021-Nov-21 299 KiB
wisi-3.1.5.tar.lz2021-Jul-31 299 KiB
wisi-3.1.4.tar.lz2021-Jul-27 292 KiB
wisi-3.1.3.tar.lz2020-Jun-07 296 KiB
wisi-3.1.2.tar.lz2020-Jun-05 296 KiB
wisi-3.1.1.tar.lz2020-May-14 283 KiB
wisi-3.1.0.tar.lz2020-May-14 283 KiB
wisi-3.0.1.tar.lz2020-Jan-31 258 KiB
wisi-2.2.1.tar.lz2019-Aug-18 243 KiB
wisi-2.2.0.tar.lz2019-Aug-17 243 KiB
wisi-2.1.1.tar.lz2019-Jul-12 247 KiB
wisi-2.1.0.tar.lz2019-Mar-22 211 KiB
wisi-2.0.1.tar.lz2018-Dec-08 203 KiB
wisi-2.0.0.tar.lz2018-Dec-03 205 KiB
wisi-1.1.6.tar.lz2017-Oct-0322.8 KiB
wisi-1.1.0.tar.lz2014-Nov-2720.8 KiB
wisi-1.0.6.tar.lz2014-Sep-2918.6 KiB
wisi-1.0.1.tar.lz2014-Mar-1416.2 KiB
wisi-1.0.tar.lz2013-Dec-2515.8 KiB


GNU Emacs wisi NEWS -- history of user-visible changes.

Copyright (C) 2014 - 2022 Free Software Foundation, Inc.

Please send wisi bug reports to, with
'wisi' in the subject. If possible, use M-x report-emacs-bug.

* wisi 4.0.0
9 Jul 2022

** Major redesign to support incremental parse.

** New user custom variable wisi-incremental-parse-enable; when
   non-nil, wisi uses incremental parse.

** There is now a log buffer showing all interactions with the parser
   process. The buffer name is given by
   (wisi-parser-transaction-log-buffer-name parser); for Ada it is

** The buffer-local variable containing the wisi parser object is
   split and renamed from wisi--parser to wisi-parser-shared, and
   wisi-parser-local. wisi-parser-shared points to a per-language
   structure; wisi-parser-local contains parser state that is buffer
   local, such as error messages.

** The new command wisi-parse-tree-query allows querying the stored
   parse tree for various things.

** Redesign how indents add, and what some indent functions mean; see for details. In general, it is easier to arrange indent
   actions to get the desired result. This may require grammar file
   indent action changes; most likely add 'wisi-block' in block

** The algorithm for naming conflicts is now more accurate, and the
   format of the %conflict declaration has changed. The old format is
   still supported. Some conflicts have the same name, but others will
   need to be updated.

** wisitoken-parse_table-mode now provides a command
   wisitoken-parse_table-conflict-goto that will find a conflict in
   the parse table file. wisitoken-grammar-mode binds that command to

** wisitoken-parse_table-mode now provides a command
   wisitoken-parse_table-goto that will find a nonterminal or state in
   the parse table file. It is recommended to bind that command to
   "\C-c.", either in global-key-map, or in modes that typically have
   nonterminals or states.

** parser process protocol version 6
    add zombie_limit
    add error-pos in Recover
    replace debug-mode, trace-mckenzie, trace-action with verbosity string
    delete wisi-mckenzie-disable, -check-limit
    add incremental parse
    increase command length to 4 digits
    add query_tree command

* wisi 3.1.3
5 Jun 2020

** Fix packaging bug.

* wisi 3.1.2
4 Jun 2020

** New dispatching function wisi-xref-completion-delim-regex for
   setting completion delimiters; example use in gpr-query.el.

** wisi-get-identifier (used by wisi-goto-spec/body and others) sets
   completion delimiters using wisi-xref-completion-delim-regex.

** A bug in wisi-before-change is fixed; it was missing many buffer
   changes, causing the parser not to be run when it should be.

* wisi 3.1.1
14 May 2020

** packaging bug fix

* wisi 3.1.0
11 May 2020

** Add Wisitoken.Syntax_Trees.Insert_Token, to allow using inserted
   virtual terminals tokens in indent. Several related changes to
   allow treating virtual terminals on par with actual terminals.

** New elisp generic functions: wisi-xref-completion-table, wisi-xref-completion-regexp, wisi-xref-completion-at-point-table

** New elisp functions: wisi-filter-table, wisi-completion-at-point, wisi-skel-add-token-after

** wisi-get-identifier uses wisi-xref-completion-table.

** wisi-prj-identifier-at-point returns (IDENT START END)

** In augmented tokens are no stored only in the syntax
   tree; new functions Get_Aug_Token_Const_1, Get_Aug_Token_Const,
   Get_Aug_Token_Var provide access to them. Parse_Data_Type contains
   a reference to the shared Terminals.

* wisi 3.0.1
30 Jan 2020

** fix packaging bugs

** improve xref integration

* wisi 3.0.0
19 Dec 2019

** parser process protocol version 5

** Add project.el integration. See for more information.

** Move autocase functions from ada-mode to wisi.

** Replace most ada-mode function variables with dispatching on wisi-prj.