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

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

[nongnu] elpa/eglot-inactive-regions 4b01aba42f 29/66: Fix package-lint


From: ELPA Syncer
Subject: [nongnu] elpa/eglot-inactive-regions 4b01aba42f 29/66: Fix package-lint warnings
Date: Fri, 6 Dec 2024 06:59:54 -0500 (EST)

branch: elpa/eglot-inactive-regions
commit 4b01aba42f8beb3ef8ceb16db1e218472ead7f12
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>

    Fix package-lint warnings
---
 clangd-inactive-regions.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 134caf7a38..26a176d1c3 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -1,4 +1,4 @@
-;;; clangd-inactive-regions.el -*- lexical-binding: t; -*-
+;;; 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)
@@ -6,7 +6,7 @@
 ;; Author: Filippo Argiolas <filippo.argiolas@gmail.com>
 ;; Version: 0.2
 ;; URL: https://github.com/fargiolas/clangd-inactive-regions
-;; Package-Requires: ((eglot))
+;; Package-Requires: ((emacs "29.1"))
 
 ;; clangd-inactive-regions.el is free software: you can redistribute
 ;; it and/or modify it under the terms of the GNU General Public
@@ -141,7 +141,7 @@ foreground colors, if the face doesn't exist yet create it."
 
     clangd-inactive-face))
 
-(defun forward-face-or-whitepace ()
+(defun clangd-inactive-regions--forward-face-or-whitespace ()
   (setq prev-face (get-text-property (point) 'face))
   (forward-char)
   (setq next-face (get-text-property (point) 'face))
@@ -192,7 +192,7 @@ foreground colors, if the face doesn't exist yet create it."
             (widen)
             (goto-char from)
             (while (<= (point) to)
-              (forward-face-or-whitepace)
+              (clangd-inactive-regions--forward-face-or-whitespace)
               ;; no need to dim whitespace
               (unless (string-match-p "[[:blank:]\n]" (string (char-before)))
                 (let* ((cur-face (clangd-inactive-regions--get-face (1- 
(point))))



reply via email to

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