[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog cada0d3871 166/166: DOC: document quasi-quotati
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog cada0d3871 166/166: DOC: document quasi-quotation highlighting in the manual |
Date: |
Fri, 30 Sep 2022 04:59:36 -0400 (EDT) |
branch: elpa/sweeprolog
commit cada0d387148fc4c8a7589a339dea3394de6b690
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
DOC: document quasi-quotation highlighting in the manual
---
README.org | 24 ++++++++++++++++++++++--
sweeprolog.el | 8 ++++++--
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index 7d6944744e..0d8fbc53af 100644
--- a/README.org
+++ b/README.org
@@ -459,9 +459,9 @@ 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.
-*** Extra highlighting features
+*** Highlighting occurrences of a variable
:PROPERTIES:
-:CUSTOM_ID: highlighting-extras
+:CUSTOM_ID: variable-highlighting
:END:
#+CINDEX: variable highlighting
@@ -485,6 +485,26 @@ 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.
+*** Quasi-quotation highlighting
+:PROPERTIES:
+:CUSTOM_ID: qq-highlighting
+:END:
+
+Quasi-quotations in =sweeprolog-mode= buffer are highlighted according
+to the Emacs mode corresponding to the quoted language by default.
+
+#+VINDEX: sweeprolog-qq-mode-alist
+The association between SWI-Prolog quasi-quotation types and Emacs
+major modes is determined by the user option =sweeprolog-qq-mode-alist=.
+To modify the default associations provided by =sweeprolog-mode=, type
+=M-x customize-option RET sweeprolog-qq-mode-alist RET=.
+
+If a quasi-quotation type does not have a matching mode in
+=sweeprolog-qq-mode-alist=, the function =sweeprolog-qq-content-face= is
+used to determine a default face for quoted content.
+
+
+
** Term-based editing and motion commands
:PROPERTIES:
:CUSTOM_ID: term-based-commands
diff --git a/sweeprolog.el b/sweeprolog.el
index 3846c2cee0..6a14623e89 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.2
+;; Package-Version: 0.4.3
;; Package-Requires: ((emacs "28"))
;; This file is NOT part of GNU Emacs.
@@ -43,7 +43,11 @@
(defcustom sweeprolog-qq-mode-alist '(("graphql" . graphql-mode)
("javascript" . js-mode)
("html" . html-mode))
- "Association between Prolog quasi-quotation types and Emacs modes."
+ "Association between Prolog quasi-quotation types and Emacs modes.
+
+This is a list of pairs of the form (TYPE . MODE), where TYPE is
+a Prolog quasi-quotation type given as a string, and MODE is a
+symbol specifing a major mode."
:package-version '((sweeprolog . "0.4.3"))
:type '(alist :key-type string :value-type symbol)
:group 'sweeprolog)
- [nongnu] elpa/sweeprolog 12fbadf13b 137/166: sweep.el: remove outdated sweep--compile-module function, (continued)
- [nongnu] elpa/sweeprolog 12fbadf13b 137/166: sweep.el: remove outdated sweep--compile-module function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c6066eabb9 144/166: ADDED: support imenu in sweep-mode buffers, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8179cb4204 135/166: FIXED: qualify calls to sweep_funcall/2, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 7085c2e830 142/166: ADDED: sweep-mode: make sexp-based commands work on Prolog terms, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6434715829 149/166: FIXED: use a more robust mechanism for finding sweep-module, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 69be982c41 150/166: FIXED: don't rely on string-lines added in Emacs 28.1, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 3e6fae1244 146/166: DOC: fix typos in README.org, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6517af47b3 134/166: FIXED: sweep-init-args separate arguments, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 24a1e14ee9 151/166: MODIFIED: Breaking change: rename sweep.el to sweeprolog.el..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 13c7551015 156/166: ENHANCED: only fontify visible sweeprolog-mode buffers on idle, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog cada0d3871 166/166: DOC: document quasi-quotation highlighting in the manual,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog 85af4010e8 158/166: Use a public mailing list in the Maintainer package header, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 353ef846fb 035/166: ENHANCED: Pass keystrokes to the top-level directly when appropriate, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 72cc4d516b 014/166: PORT: detect linux vs macOS shared object extension in Makefile, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog e029eb3e3c 016/166: update .build.yml, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0aa0a46631 017/166: PORT: don't use clang's -fdiagnostics-absolute-paths, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog d4a501e9af 020/166: PORT: use rpath linker option, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog b75179cc6e 022/166: Revert rpath tweaks, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 2f5dd9f13c 024/166: FIXED: Use more robust Prolog to C string conversion, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5f0f223318 023/166: Use LD_PRELOAD for testing, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog ea04f467b9 027/166: ADDED: sweep-pack-install for interactively installing packs, ELPA Syncer, 2022/09/30