[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
- [nongnu] elpa/idle-highlight-mode updated (5418252a11 -> 215d6612b4), ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode ca1c028daf 04/16: Add melpa link, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 00938d86b4 01/16: Correct URL, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 9976d951f5 07/16: Cleanup: emacs native format, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode f8b3cf0de1 10/16: Update description, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 8ded8426e9 11/16: Release 1.1.4, avoid `global-` prefix for functions and variables,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode d0eb1dc453 15/16: Cleanup: reformat with updated elisp-autofmt, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 215d6612b4 16/16: Cleanup: disable formatting for quoted text, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode e654412df7 06/16: Cleanup: format, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 0a712722c9 03/16: Cleanup: use plist-dolist, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 37e181903c 09/16: Cleanup: add fill-column local variable, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode ae5e663dda 08/16: Cleanup: formatting, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 6749314b0d 13/16: Fix compatibility for pos-bol/eol for emacs <29.1, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 6f3a6252e9 02/16: Resolve issues building the packages with elpa.gnu.org, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode c02f1c4bb2 05/16: Cleanup: require pcase for pcase-dolist, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 7c66d59da1 12/16: Cleanup: use pos-bol/eol as respecting fields isn't needed, ELPA Syncer, 2023/02/07