[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/auto-dim-other-buffers bedeef9ea3 70/82: Support ‘adow-mo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/auto-dim-other-buffers bedeef9ea3 70/82: Support ‘adow-mode’ since the first Emacs 27 preview releases |
Date: |
Mon, 12 Dec 2022 20:58:46 -0500 (EST) |
branch: elpa/auto-dim-other-buffers
commit bedeef9ea3f2d8e45961427359ff88f840fcb67d
Author: Michal Nazarewicz <mina86@mina86.com>
Commit: Michal Nazarewicz <mina86@mina86.com>
Support ‘adow-mode’ since the first Emacs 27 preview releases
The :filtered :window face predicate has already been available since
Emacs 27.0.90. This can be confirmed by investigating repository’s
history:
$ git log --oneline --no-walk 9d447fa1562
9d447fa1562 Add support for per-window face remapping
$ git tag --contains 9d447fa1562
emacs-27.0.90
emacs-27.0.91
Enable ‘adow-mode’ in those development release. There really is no
reason not to. Meanwhile, Emacs 27.1 hasn’t came out yet so this will
allow users take advantage of the new mode without having to compile
Emacs by hand (at least in those situations where they have access to
the pre-releases).
Fixes: https://github.com/mina86/auto-dim-other-buffers.el/issues/21
---
README.md | 6 +++---
auto-dim-other-buffers.el | 18 +++++++++---------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index c75f075f0d..15f04c2a94 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,6 @@ customisation group which can be accessed with:
M-x customize-group RET auto-dim-other-buffers RET
-Note that despite it’s name, since Emacs 27.1 the mode operates on *windows*
-rather than buffers. I.e. selected window is highlighted and all other
-windows are dimmed even if they display the same buffer.
+Note that despite it’s name, since Emacs 27 the mode operates on
+*windows* rather than buffers. I.e. selected window is highlighted
+and all other windows are dimmed even if they display the same buffer.
diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index b3ea2a3766..e79bf1c0d6 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -2,7 +2,7 @@
;; Author: Michal Nazarewicz <mina86@mina86.com>
;; Maintainer: Michal Nazarewicz <mina86@mina86.com>
;; URL: https://github.com/mina86/auto-dim-other-buffers.el
-;; Version: 2.0
+;; Version: 2.0.1
;; This file is not part of GNU Emacs.
@@ -52,12 +52,12 @@
;;
;; M-x customize-group RET auto-dim-other-buffers RET
-;; Note that despite it’s name, since Emacs 27.1 the mode operates on *windows*
+;; Note that despite it’s name, since Emacs 27 the mode operates on *windows*
;; rather than buffers. I.e. selected window is highlighted and all other
;; windows are dimmed even if they display the same buffer. In older Emacs
;; versions the mode falls back to the old behaviour where all windows
-;; displaying selected buffer are highlighted. This historic behaviour is
where
-;; the mode gets its name from.
+;; displaying selected buffer are highlighted. This historic behaviour
+;; is where the mode gets its name from.
;;; Code:
@@ -77,12 +77,12 @@
:group 'auto-dim-other-buffers)
-(defconst adob--adow-mode (not (version< emacs-version "27.1"))
+(defconst adob--adow-mode (not (version< emacs-version "27.0.90"))
"Whether Emacs supports :filtered faces.
If t, the code will run in ‘auto dim other window’ mode (hence
‘adow-mode’) which operates on windows rather than buffers. To
operate on windows, Emacs must support :filtered face predicate
-which has been added in Emacs 27.1.")
+which has been added in Emacs 27.")
(defconst adob--remap-face
(if adob--adow-mode
@@ -267,7 +267,7 @@ windows in a frame, the idea is that this mode helps
recognise
which is the selected window by providing a non-intrusive but
still noticeable visual indicator.
-Note that despite it’s name, since Emacs 27.1 this mode operates
+Note that despite it’s name, since Emacs 27 this mode operates
on *windows* rather than buffers. In older versions of Emacs, if
a buffer was displayed in multiple windows, none of them would be
dimmed even though at most one could have focus. This historic
@@ -277,8 +277,8 @@ behaviour is where the mode gets its name from."
(let ((callback (if auto-dim-other-buffers-mode #'add-hook #'remove-hook)))
(funcall callback 'window-configuration-change-hook #'adob--rescan-windows)
(funcall callback 'buffer-list-update-hook #'adob--buffer-list-update-hook)
- ;; Prefer ‘after-focus-change-function’ (which was added in Emacs 27.1) to
- ;; ‘focus-out-hook’ and ‘focus-in-hook’.
+ ;; Prefer ‘after-focus-change-function’ (which was added in Emacs 27)
+ ;; to ‘focus-out-hook’ and ‘focus-in-hook’.
(if (boundp 'after-focus-change-function)
(if auto-dim-other-buffers-mode
(add-function :after after-focus-change-function
- [nongnu] elpa/auto-dim-other-buffers a385b6013e 39/82: Drop turn-{on, off}-* functions., (continued)
- [nongnu] elpa/auto-dim-other-buffers a385b6013e 39/82: Drop turn-{on, off}-* functions., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8c4470713f 33/82: Set lexical binding on., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a066c32ada 40/82: Allow disabling “dimming on focus out” feature, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8b1d8803b5 43/82: Fix Markdown formatting in README file, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e9c886fac5 42/82: Use even number of arguments for `setq', ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 853523a854 50/82: Don't dim last buffer when switching to minibuffer or echo area., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers efd617c999 60/82: Make sure current buffer is not dimmed when the mode is enabled, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers e4ef0a93ca 66/82: Unconditionally undim selected buffer when focus is regained, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a87cf772ac 61/82: Dim only the last buffer when loosing focus, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 087baafa08 51/82: Move minibuffer check to the beginning of ‘adob--buffer-list-update-hook’, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers bedeef9ea3 70/82: Support ‘adow-mode’ since the first Emacs 27 preview releases,
ELPA Syncer <=
- [nongnu] elpa/auto-dim-other-buffers cad370fb6c 72/82: Preserve current-buffer, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 191d714ebb 68/82: Dim individual windows rather than buffers, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers ed9ebbcc52 74/82: Define Auto Dim Other Buffers customise group, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 0a103b09eb 73/82: Require 'face-remap to silence compilation warning, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers a1c67bf557 81/82: Update screenshot animation and demo video link, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers c9fe23d03c 79/82: Allow configuring which faces to alter; not just the ‘default’, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 8062977284 10/82: face is real face, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 7f332de332 17/82: oops, ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers 7502775f38 29/82: Use a shorter lighter for the mode., ELPA Syncer, 2022/12/12
- [nongnu] elpa/auto-dim-other-buffers b1562a1200 38/82: Wrap `adob--dim-all-buffers' into a lambda when adding as a hook, ELPA Syncer, 2022/12/12