[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/racket-mode 8d2d63a5a4 1/2: CI: Handle MELPA -pkg.el chang
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/racket-mode 8d2d63a5a4 1/2: CI: Handle MELPA -pkg.el change in older Emacs |
Date: |
Sun, 29 Sep 2024 13:00:59 -0400 (EDT) |
branch: elpa/racket-mode
commit 8d2d63a5a410ad560c55335356cb1d4e947a2b01
Author: Greg Hendershott <git@greghendershott.com>
Commit: Greg Hendershott <git@greghendershott.com>
CI: Handle MELPA -pkg.el change in older Emacs
MELPA c. 2024-09-29 started to add a header line in each -pkg.el file:
";; -*- mode: lisp-data; no-byte-compile: t; lexical-binding: nil -*-\n"
This causes package-install to barf on older versions of Emacs where
lisp-data-mode is undefined.
Mitigate by defalias-ing lisp-data-mode to emacs-lisp-mode. (Although
e.g. Emacs 26.3 is fine with normal-mode, Emacs 25.1 seems to need
emacs-lisp-mode, and anyway that's the closest equivalent.)
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 7a01cd59b0..84c25c86ad 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,7 @@ melpa-url := https://melpa.org/packages/
deps:
$(batch-emacs) \
--eval '(add-to-list (quote package-archives) (cons "melpa"
"$(melpa-url)"))' \
+ --eval '(unless (fboundp (quote lisp-data-mode)) (defalias (quote
lisp-data-mode) (quote emacs-lisp-mode)))' \
--eval '(package-refresh-contents)' \
--eval '(package-install (quote faceup))' \
--eval '(package-install (quote paredit))'