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

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

[nongnu] elpa/idle-highlight-mode 8ded8426e9 11/16: Release 1.1.4, avoid


From: ELPA Syncer
Subject: [nongnu] elpa/idle-highlight-mode 8ded8426e9 11/16: Release 1.1.4, avoid `global-` prefix for functions and variables
Date: Tue, 7 Feb 2023 23:59:17 -0500 (EST)

branch: elpa/idle-highlight-mode
commit 8ded8426e9fb6e2637c25d52184f6333dfa157ad
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Release 1.1.4, avoid `global-` prefix for functions and variables
---
 changelog.rst          |  4 +++-
 idle-highlight-mode.el | 21 +++++++++++++--------
 readme.rst             | 14 +++++++-------
 3 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/changelog.rst b/changelog.rst
index 7d56fa4b7e..7fc39ba3fa 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -1,5 +1,7 @@
-- In development (2022-01-20)
+- Version 1.1.4 (2023-01-10)
 
+  - Rename ``global-idle-highlight-mode`` to ``idle-highlight-global-mode`` and
+    ``global-idle-highlight-ignore-buffer`` to 
``idle-highlight-global-ignore-buffer``.
   - Fix #2 use symbol instead of word bounds when scanning items to highlight.
   - Fix #1 font face detection when overlays were in use (such as 
``hl-line-mode``).
   - Fix highlighting with multiple windows sharing one buffer.
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index 9f7c0a10b8..14a234c591 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -6,7 +6,7 @@
 ;; Author: Phil Hagelberg, Cornelius Mika, Campbell Barton
 ;; Maintainer: Campbell Barton <ideasman42@gmail.com>
 ;; URL: https://codeberg.org/ideasman42/emacs-idle-highlight-mode
-;; Version: 1.1.3
+;; Version: 1.1.4
 ;; Created: 2008-05-13
 ;; Keywords: convenience
 ;; EmacsWiki: IdleHighlight
@@ -87,14 +87,18 @@ See documentation for `skip-syntax-forward', nil to ignore."
   "List of major-modes to exclude when `idle-highlight' has been enabled 
globally."
   :type '(repeat symbol))
 
-(defvar-local global-idle-highlight-ignore-buffer nil
+(define-obsolete-variable-alias
+  'global-idle-highlight-ignore-buffer
+  'idle-highlight-global-ignore-buffer
+  "1.1.4")
+
+(defvar-local idle-highlight-global-ignore-buffer nil
   "When non-nil, the global mode will not be enabled for this buffer.
 This variable can also be a predicate function, in which case
 it'll be called with one parameter (the buffer in question), and
 it should return non-nil to make Global `idle-highlight' Mode not
 check this buffer.")
 
-
 ;; ---------------------------------------------------------------------------
 ;; Internal Variables
 
@@ -412,10 +416,10 @@ should be the result of 
`idle-highlight--word-at-point-args'."
          ;; Not explicitly ignored.
          (not (memq major-mode idle-highlight-ignore-modes))
          ;; Optionally check if a function is used.
-         (or (null global-idle-highlight-ignore-buffer)
+         (or (null idle-highlight-global-ignore-buffer)
              (cond
-              ((functionp global-idle-highlight-ignore-buffer)
-               (not (funcall global-idle-highlight-ignore-buffer 
(current-buffer))))
+              ((functionp idle-highlight-global-ignore-buffer)
+               (not (funcall idle-highlight-global-ignore-buffer 
(current-buffer))))
               (t
                nil))))
     (idle-highlight-mode 1)))
@@ -436,11 +440,12 @@ should be the result of 
`idle-highlight--word-at-point-args'."
     (idle-highlight--disable))))
 
 ;;;###autoload
-(define-globalized-minor-mode global-idle-highlight-mode
-
+(define-globalized-minor-mode idle-highlight-global-mode
   idle-highlight-mode
   idle-highlight--turn-on)
 
+(define-obsolete-function-alias 'global-idle-highlight-mode 
#'idle-highlight-global-mode "1.1.4")
+
 (provide 'idle-highlight-mode)
 ;; Local Variables:
 ;; fill-column: 99
diff --git a/readme.rst b/readme.rst
index 4f838a0872..c8dd10345d 100644
--- a/readme.rst
+++ b/readme.rst
@@ -34,7 +34,7 @@ Commands
 
 ``idle-highlight-mode``
    Enable idle highlight mode for this buffer.
-``global-idle-highlight-mode``
+``idle-highlight-global-mode``
    Enable idle highlight mode for all buffers.
 
 
@@ -66,15 +66,15 @@ Global Settings
    Apply the current highlighting to all visible buffers.
 ``idle-highlight-idle-time``: ``0.35``
    Delay before highlighting (in seconds).
-``global-idle-highlight-ignore-modes``: ``nil``
-   A list of modes that won't enable idle-highlight from 
``global-idle-highlight-mode``.
+``idle-highlight-global-ignore-modes``: ``nil``
+   A list of modes that won't enable idle-highlight from 
``idle-highlight-global-mode``.
 
 
 Buffer Local Settings
 ^^^^^^^^^^^^^^^^^^^^^
 
-``global-idle-highlight-ignore-buffer``
-   When not ``nil``, the buffer won't enable idle-highlight from 
``global-idle-highlight-mode``.
+``idle-highlight-global-ignore-buffer``
+   When not ``nil``, the buffer won't enable idle-highlight from 
``idle-highlight-global-mode``.
 
    This may also be a function that takes a single buffer argument,
    where returning ``nil`` will enable idle-highlight, anything else will not.
@@ -84,9 +84,9 @@ Buffer Local Settings
    .. code-block:: elisp
 
       (setq idle-highlight-ignore-modes (list 'org-mode))
-      (setq global-idle-highlight-ignore-buffer (lambda (buf) 
(buffer-local-value 'buffer-read-only buf)))
+      (setq idle-highlight-global-ignore-buffer (lambda (buf) 
(buffer-local-value 'buffer-read-only buf)))
 
-      (global-idle-highlight-mode)
+      (idle-highlight-global-mode)
 
 
 Installation



reply via email to

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