emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/sweeprolog 6e9ac379e6 047/166: DOC: Expand top-level docum


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog 6e9ac379e6 047/166: DOC: Expand top-level documentation section
Date: Fri, 30 Sep 2022 04:59:25 -0400 (EDT)

branch: elpa/sweeprolog
commit 6e9ac379e670a3067d4ed6a5dda6521e694f471c
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    DOC: Expand top-level documentation section
---
 README.org | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/README.org b/README.org
index e4f9a2f2e6..8cff877585 100644
--- a/README.org
+++ b/README.org
@@ -261,13 +261,34 @@ function without any arguments.
 =sweep= provides a classic Prolog top-level interface for interacting
 with the embedded Prolog runtime.  To start the top-level, use =M-x
 sweep-top-level=.  This command opens a buffer called =*sweep-top-level*=
-which hosts the live Prolog top-level.  If the top-level buffer
-already exists, =sweep-top-level= will reuse it by default.  To create
-another one or more top-level buffers, run the command =C-x x u= (or =M-x
-rename-uniquely=) in the buffer called =*sweep-top-level*= and then run
-=M-x sweep-top-level= again.  This will change the name of the original
-top-level buffer to something like =*sweep-top-level*<2>= and allow the
-new top-level to claim the buffer name =*sweep-top-level*=.
+which hosts the live Prolog top-level.
+
+#+FINDEX: sweep-top-level-mode
+#+VINDEX: sweep-top-level-mode
+The top-level buffer uses a major mode named
+=sweep-top-level-mode=. This mode derives from =comint-mode=, which is the
+common mode used in Emacs REPL interfaces.  As a result, the top-level
+buffer inherits the features present in other =comint-mode= derivatives,
+most of which are described in [[info:emacs#Shell Mode][the Emacs manual]].
+
+** Multiple top-levels
+
+Any number of top-levels can be created and used concurrently, each in
+its own buffer.  If a top-level buffer already exists, =sweep-top-level=
+will simply open it by default.  To create another one or more
+top-level buffers, run the command =C-x x u= (or =M-x rename-uniquely=) in
+the buffer called =*sweep-top-level*= and then run =M-x sweep-top-level=
+again.  This will change the name of the original top-level buffer to
+something like =*sweep-top-level*<2>= and allow the new top-level to
+claim the buffer name =*sweep-top-level*=.
+
+** Completion in the top-level
+
+The =sweep-top-level-mode=, enabled in the =sweep= top-level buffer,
+integrates with the standard Emacs symbol completion mechanism to
+provide completion for predicate names.  To complete a partial
+predicate name in the top-level prompt, use =C-M-i= (or =M-<TAB>=).  For
+more information see [[info:emacs#Symbol Completion][Symbol Completion in the 
Emacs manual]].
 
 * Finding Prolog code
 :PROPERTIES:



reply via email to

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