[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bind-key 0572eaf4e0 08/13: Fix building on Emacs 24.3
From: |
ELPA Syncer |
Subject: |
[elpa] externals/bind-key 0572eaf4e0 08/13: Fix building on Emacs 24.3 |
Date: |
Mon, 14 Nov 2022 15:57:21 -0500 (EST) |
branch: externals/bind-key
commit 0572eaf4e0b14b485e7889e672f65230e4ddd2d3
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Fix building on Emacs 24.3
This fixes the following error:
use-package-core.el:60:32:Error: Cannot open load file: subr-x
---
use-package-core.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/use-package-core.el b/use-package-core.el
index 53bc3ed2a4..9e7b3b56e1 100644
--- a/use-package-core.el
+++ b/use-package-core.el
@@ -53,11 +53,18 @@
;; iterating over them to "disable all themes" won't disable it.
(setq custom-enabled-themes (remq 'use-package custom-enabled-themes))
-(if (and (eq emacs-major-version 24) (eq emacs-minor-version 3))
- (defsubst hash-table-keys (hash-table)
- "Return a list of keys in HASH-TABLE."
- (cl-loop for k being the hash-keys of hash-table collect k))
- (eval-when-compile (require 'subr-x)))
+(eval-when-compile
+ (if (and (eq emacs-major-version 24) (eq emacs-minor-version 3))
+ (progn
+ (defsubst hash-table-keys (hash-table)
+ "Return a list of keys in HASH-TABLE."
+ (cl-loop for k being the hash-keys of hash-table collect k))
+ (defsubst string-suffix-p (suffix string &optional ignore-case)
+ (let ((start-pos (- (length string) (length suffix))))
+ (and (>= start-pos 0)
+ (eq t (compare-strings suffix nil nil
+ string start-pos nil ignore-case))))))
+ (require 'subr-x)))
(eval-when-compile
(require 'regexp-opt))
- [elpa] externals/bind-key updated (da899c4674 -> 87c03dffc7), ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key d9b136d420 12/13: Merge pull request #1014 from skangas/readme-fixes, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 116e042f72 10/13: Merge pull request #1012 from skangas/makefile-emacsbin, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 87c03dffc7 13/13: Merge pull request #1015 from skangas/checkdoc, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 98fa02c521 07/13: Fix tests on Emacs 26 or older, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key f1ce5efa6b 02/13: Fix typo in README.md, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 0572eaf4e0 08/13: Fix building on Emacs 24.3,
ELPA Syncer <=
- [elpa] externals/bind-key bc2f09f2d1 04/13: Delete Travis CI configuration, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 09c8ce9d5f 05/13: Add all supported versions to GitHub CI matrix, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 362788164a 09/13: Various checkdoc fixes, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 62919496cb 01/13: Don't mention versions <2.x at start of README.md, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key dc279c7418 03/13: Remove variable EMACSBIN from Makefile (Close #649), ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key cb79d4f386 06/13: Harden GitHub CI configuration, ELPA Syncer, 2022/11/14
- [elpa] externals/bind-key 042778a64c 11/13: Merge pull request #1013 from skangas/ci, ELPA Syncer, 2022/11/14