[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 5d1580f32b 38/66: fix docs and bump
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 5d1580f32b 38/66: fix docs and bump version |
Date: |
Fri, 6 Dec 2024 06:59:55 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 5d1580f32b4e0018298d97837d9e6cc8d2201a18
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
fix docs and bump version
---
clangd-inactive-regions.el | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 11b438b459..54c45670a6 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -1,10 +1,11 @@
;;; clangd-inactive-regions.el --- Highlight inactive code regions with clangd
power -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Filippo Argiolas <filippo.argiolas@gmail.com>
-;; Based on an example implementation from João Távora <joaotavora@gmail.com>
(see bug#65418)
+;; Based on an example implementation from João Távora
+;; <joaotavora@gmail.com> (see bug#65418)
;; Author: Filippo Argiolas <filippo.argiolas@gmail.com>
-;; Version: 0.3
+;; Version: 0.4
;; URL: https://github.com/fargiolas/clangd-inactive-regions
;; Package-Requires: ((emacs "29.1"))
@@ -42,14 +43,14 @@
(defvar clangd-inactive-regions-opacity 0.55
"Blending factor for the `darken-foreground' method.
-Used to mix foreground and background color and apply to the
-foreground of the inactive region. The lower the blending factor
-the more text will look dim.")
+Used to mix foreground and background colors and apply to the foreground
+face of the inactive region. The lower the blending factor the more
+text will look dim.")
(defvar clangd-inactive-regions-shading 0.08
"Blending factor for the `shade-background' method.
-Used to mix background and foreground and shade inactive region
-background. The higher the less visible the shading will be.")
+Used to mix background and foreground colors and shade inactive region
+background face. The higher the less visible the shading will be.")
(defvar clangd-inactive-regions-method "darken-foreground"
"Shading method to apply to the inactive code regions.
@@ -60,11 +61,11 @@ Allowed methods:
(defface clangd-inactive-regions-shadow-face
'((t (:inherit shadow)))
- "Face used to inactive code with shadow method.")
+ "Base face used to fontify inactive code when `shadow' method is enabled.")
(defface clangd-inactive-regions-shade-face
'((t (:extend t)))
- "Face used to inactive code with shade-background method.")
+ "Base face used to fontify inactive code when `shade-background' method is
enabled.")
(define-minor-mode clangd-inactive-regions-mode
"Minor mode to enable Eglot support for clangd inactiveRegions extension."
@@ -90,7 +91,7 @@ Allowed methods:
"Interactively set a new OPACITY value for inactive regions.
Only applies when `darken-foreground' method is enabled."
(interactive "nNew inactive region foreground color opacity [0-1.0]: ")
- (unless (and (>= opacity 0.0) (< opacity 1.0))
+ (unless (and (>= opacity 0.0) (<= opacity 1.0))
(error "Opacity should be between 0.0 and 1.0"))
(setq clangd-inactive-regions-opacity opacity)
(when (clangd-inactive-regions-mode)
@@ -100,7 +101,7 @@ Only applies when `darken-foreground' method is enabled."
"Interactively set a new SHADING value for inactive regions.
Only applies when `shade-background' method is enabled."
(interactive "nNew inactive region background color shading [0-1.0]: ")
- (unless (and (>= shading 0.0) (< shading 1.0))
+ (unless (and (>= shading 0.0) (<= shading 1.0))
(error "Shading factor should be between 0.0 and 1.0"))
(setq clangd-inactive-regions-shading shading)
(when (clangd-inactive-regions-mode)
@@ -159,7 +160,7 @@ If the correspondend \"clangd-inactive\" face doesn't not
exist yet create it."
"Forward to the next face change.
Some mode uses `default' face for both generic keywords and
whitespace while some other uses nil for whitespace. Either way
-we don't want to includ whitespace in fontification."
+we don't want to include whitespace in fontification."
(let* ((prev-face (get-text-property (point) 'face))
(_ (forward-char))
(next-face (get-text-property (point) 'face)))
- [nongnu] elpa/eglot-inactive-regions 21c26bc4e2 40/66: use built-in color to hex converter, (continued)
- [nongnu] elpa/eglot-inactive-regions 21c26bc4e2 40/66: use built-in color to hex converter, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4b698aaeb8 42/66: always enable inactiveRegions caps, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 6ad3ce4337 47/66: experimental support for ccls skippedRanges, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions bdf568d9ff 63/66: suppress warnings for obsolete eglot functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 20cacf2b2d 16/66: Warn if shading method is unknown, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 879c5cf032 20/66: Advice default fontify region function instead of local one, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions a17388e4b4 30/66: Update docs and comments, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 8f341e9ad7 32/66: Minor cosmetics, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 9f439654dc 27/66: Only run our fontification hook if our mode is enabled, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 42f37d0970 33/66: update README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5d1580f32b 38/66: fix docs and bump version,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions cd53f3244a 56/66: rename darken-foreground dimmed faces, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 437d09e552 53/66: revert to deprecated eglot functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions bf51947630 55/66: prefer when-let if no else clause is needed, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 193827fdeb 58/66: missing clangd references after rename, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5c20f58422 60/66: clean up after review on emacs-devel, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 80c1b60009 44/66: Revert "revert to deprecated eglot functions", ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 26f3b61b45 51/66: readme update, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions badb4e403a 46/66: cleanup on major mode changes, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions a810593308 59/66: bump version to 0.6, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 7e4eb584e0 61/66: fallback to deprecated functions, ELPA Syncer, 2024/12/06