[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 1c87ca72e3 163/166: DOC: document new variable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 1c87ca72e3 163/166: DOC: document new variable highlighting in the manual |
Date: |
Fri, 30 Sep 2022 04:59:35 -0400 (EDT) |
branch: elpa/sweeprolog
commit 1c87ca72e3a43cb250018c3ece23351db121c22d
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
DOC: document new variable highlighting in the manual
---
README.org | 46 ++++++++++++++++++++++++++++++++++++++++------
sweeprolog.el | 2 +-
2 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/README.org b/README.org
index 09dc1b24b9..7d6944744e 100644
--- a/README.org
+++ b/README.org
@@ -430,10 +430,21 @@ highlighting can be set via the user option
=sweeprolog-colourise-buffer-min-interval=.
#+CINDEX: sweeprolog-faces
-=sweep= defines more than 60 different faces (named sets of properties
-that determine the appearance of a specific text in Emacs buffers, see
-also [[info:emacs#Faces][Faces in the Emacs manual]]) to signify the specific
semantics of
-each token in a Prolog code buffer. =sweep= comes with three /styles/:
+=sweep= defines three highlighting /styles/, each containing more than 60
+different faces (named sets of properties that determine the
+appearance of a specific text in Emacs buffers, see also
[[info:emacs#Faces][Faces in the
+Emacs manual]]) to signify the specific semantics of each token in a
+Prolog code buffer.
+
+To view and customize all of the faces defined and used in =sweep=, type
+=M-x customize-group RET sweeprolog-faces RET=.
+
+*** Available styles
+:PROPERTIES:
+:CUSTOM_ID: highlighting-styles
+:END:
+
+=sweep= comes with three highlighting styles:
- The =default= style includes faces that mostly inherit from standard
Emacs faces commonly used in programming modes.
@@ -448,8 +459,31 @@ To choose a style, customize the user option
=sweeprolog-faces-style= with
apply to all new =sweeprolog-mode= buffers. To apply the new style to an
existing buffer, use =C-x x f= (=font-lock-update=) in that buffer.
-To view and customize all of the faces defined and used in =sweep=, type
-=M-x customize-group RET sweeprolog-faces RET=.
+*** Extra highlighting features
+:PROPERTIES:
+:CUSTOM_ID: highlighting-extras
+:END:
+
+#+CINDEX: variable highlighting
+=sweeprolog-mode= can highlight all occurrences of a given Prolog
+variable in the clause in which it appears. By default, occurrences
+of the variable at point are highlighted automatically whenever the
+cursor is moved into a variable. To achieve this, =sweep= uses the
+Emacs minor mode =cursor-sensor-mode= which allows for running hooks
+when the cursor enters or leaves certain text regions (see also
[[info:elisp#Special
+Properties][Special Properties in the Elisp manual]]).
+
+#+VINDEX: sweeprolog-enable-cursor-sensor
+To disable automatic variable highlighting based on the variable at
+point, customize the variable =sweeprolog-enable-cursor-sensor= to nil.
+
+#+FINDEX: sweeprolog-highlight-variable
+To manually highlight occurrences of a variable in the clause
+surrounding point, =sweeprolog-mode= provides the command =M-x
+sweeprolog-highlight-variable=. This command prompts for variable to
+highlight, defaulting to the variable at point, if any. If called
+with a prefix argument (=C-u M-x sweeprolog-highlight-variable=), it
+clears all variable highlighting in the current clause instead.
** Term-based editing and motion commands
:PROPERTIES:
diff --git a/sweeprolog.el b/sweeprolog.el
index a824d5ffae..6782626c17 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -6,7 +6,7 @@
;; Maintainer: Eshel Yaron <~eshel/dev@lists.sr.ht>
;; Keywords: prolog languages extensions
;; URL: https://git.sr.ht/~eshel/sweep
-;; Package-Version: 0.4.1
+;; Package-Version: 0.4.2
;; Package-Requires: ((emacs "28"))
;; This file is NOT part of GNU Emacs.
- [nongnu] elpa/sweeprolog 615312796c 048/166: FIXED: copy paste error (singleton variable), (continued)
- [nongnu] elpa/sweeprolog 615312796c 048/166: FIXED: copy paste error (singleton variable), ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 37f83755f6 049/166: PORT: detect older swipl and disable custom GMP alloc functions, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 3139de3e6c 056/166: ENHANCED: prompt for buffer name in sweep-top-level with C-u, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog ea43b81c95 058/166: DOC: update manual section about filespec expansion, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 3351766605 103/166: sweep.el: bump Package-Version to 0.2.0, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5b9e2d7d7c 126/166: ADDED: sweep_op_info/2: new_predicate, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5eb4ede8f8 113/166: ADDED: (sweep-prefix-operators): New function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 2abad939fe 108/166: DOC: Following file specifications: new section, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6dd6433920 165/166: ENHANCED: fontify quasi-quotation content according to its type, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 48e8fb7c65 155/166: ENHANCED: (sweep--colour-term-to-face): return multiple regions, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 1c87ca72e3 163/166: DOC: document new variable highlighting in the manual,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog a8d186092f 157/166: ENHANCED: More indicative error on failure to locate sweep-module, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 97856b5c85 159/166: DOC: add installation instructions from NonGNU ELPA, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 348294a57f 002/166: Add swipl-devel submodule, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog b2838d5477 004/166: Cleanup, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 4f96499382 011/166: DOC: expand README.org, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5c4aef50f2 041/166: Run `ninja install` as root in CI, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog a6e37f306b 069/166: ENHANCED: fontify mutlifile predicate calls in a dedicated face, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 4299c39d62 070/166: ENHANCED: indentation edge cases handling, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 1a19f7b3be 074/166: DOC: document font-lock and xref integration for sweep-mode, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 1c6d2e96a8 078/166: ENHANCED: allow user to specify location of swipl binary, ELPA Syncer, 2022/09/30