gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NonGNU ELPA] Sweeprolog version 0.14.1


From: ELPA update
Subject: [NonGNU ELPA] Sweeprolog version 0.14.1
Date: Sat, 28 Jan 2023 17:06:14 -0500

Version 0.14.1 of package Sweeprolog has just been released in NonGNU ELPA.
You can now find it in M-x list-packages RET.

Sweeprolog describes itself as:

  ===================
  Embedded SWI-Prolog
  ===================

More at https://elpa.nongnu.org/nongnu/sweeprolog.html

## Summary:

                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                    SWEEP: SWI-PROLOG EMBEDDED IN EMACS

                                Eshel Yaron
                             me@eshelyaron.com
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


  This manual describes the Emacs package Sweep (or `sweeprolog.el'),
  which provides an embedded SWI-Prolog runtime inside of Emacs.

  Table of Contents
  ─────────────────

## Recent NEWS:

             ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
              SWEEP NEWS – HISTORY OF USER-VISIBLE CHANGES
             ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


This file contains the release notes for Sweep, an embedding of
SWI-Prolog in Emacs.

For further details, please consult the manual:
[https://eshelyaron.com/sweep.html].


[https://eshelyaron.com/sweep.html] <https://eshelyaron.com/sweep.html>


Version 0.14.1 on 2023-01-28
════════════════════════════

New command `sweeprolog-count-holes'
────────────────────────────────────

  This command displays the number of holes in the current
  `sweeprolog-mode' buffer.


New numeric argument to `sweeprolog-forward-hole'
─────────────────────────────────────────────────

  You can now call `sweeprolog-forward-hole' with a numeric prefix
  argument (e.g. `C-3 C-c TAB') to move forward over that many holes. As
  a special case, if you call it with a zero numeric argument (e.g. by
  typing `C-0 C-c TAB'), it invokes `sweeprolog-count-holes' instead.

  This change applies to `sweeprolog-backward-predicate' as well.


Predicate completion now consults the manual for argument names
───────────────────────────────────────────────────────────────

  Completing predicate calls to built-in predicates with `C-M-i'
  (`completion-at-point') now uses the argument names from the
  documentation of the predicate in the SWI-Prolog manual to name the
  holes it inserts as placeholder arguments.


Version 0.14.0 on 2023-01-23
════════════════════════════

New command `sweeprolog-async-goal'
───────────────────────────────────

  Sweep can now run goals in separate threads while redirecting their
  output to Emacs buffers.  To run goals and display their output
  asynchronously, use the new command `M-x sweeprolog-async-goal' (bound
  to `C-c C-&' in `sweeprolog-mode').  Sweep uses a dedicated mode
  called `sweeprolog-async-goal-output-mode' which derives from
  `compilation-mode' for the goal’s output.


The command `sweeprolog-xref-project-source-files' now reports its progress
───────────────────────────────────────────────────────────────────────────


Fixed issue where signaling new Top-levels could fail
─────────────────────────────────────────────────────

  This version fixes an issue where signaling newly created Prolog
  Top-level threads with `C-c C-c' could fail due to a race condition.


Version 0.13.0 on 2023-01-20
════════════════════════════

Right-click context menu support
────────────────────────────────

  Sweep now leverages the Context Menu minor mode built into Emacs 28+
  to provide right-click menus for Prolog code that give you access to
  different commands depending on what you click on.  You can enable
  Context Menu mode with `M-x context-menu-mode'.


Jumping to predicate definition works also for autoloadable predicates
──────────────────────────────────────────────────────────────────────

  Jumping to predicate definitions with `M-.' (`xref-find-definitions')
  now works also for predicates defined in source files listed in the
  library index that weren’t loaded or visited yet.


Fixed inaccuracy in jumping to predicate definitions in modified buffers
────────────────────────────────────────────────────────────────────────

  In previous versions, jumping to the definition of a predicate defined
  in another buffer that has recently been modified could end up placing
  point in the wrong line of that buffer due to stale xref data.  This
  version fixes this issue, jumping to predicate definitions with `M-.'
  now locates the current definition line also in face of recent
  modifications.


Version 0.12.0 on 2023-01-16
════════════════════════════

Add on-hover descriptions to tokens in Prolog code
──────────────────────────────────────────────────

  `sweeprolog-mode' can now annotate tokens in Prolog code with textual
  descriptions that are displayed at the mouse tooltip when you hover
  over different tokens in the buffer.  This is done by using the
  `help-echo' text property.  You can also display these descriptions in
  the echo area with `C-h .' (`display-local-help').


New user option `sweeprolog-enable-help-echo'
─────────────────────────────────────────────

  This is a flag controlling whether `sweeprolog-mode' adds descriptions
  to tokens in Prolog code via the `help-echo' text property.  It is set
  to `t' by default.


Version 0.11.3 on 2023-01-15
════════════════════════════

Improve integration with the standard `compilation-mode'
────────────────────────────────────────────────────────

  In previous versions, following an error/warning message from a buffer
  that enables `compilation-mode' or one of its derivatives to a
  `sweeprolog-mode' buffer would forcefully set the
  `next-error-last-buffer' to the target `sweeprolog-mode' buffer.  That
  would cause further ~M-x …  …

reply via email to

[Prev in Thread] Current Thread [Next in Thread]