Skip to content

Commit 7bebecb

Browse files
committed
elx-package-requires: Adapt for Emacs 30
Specifically for bb5399e3cd75450db6db9b3c5829f7bd87ca1308.
1 parent b14edc2 commit 7bebecb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

elx.el

+8-3
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,14 @@ single line, or the prefix used on continuation lines."
173173
(lm-with-file file
174174
(elx--header-multiline "package-requires" t))))
175175
(and-let* ((lines lines)
176-
(value (package--prepare-dependencies
177-
(package-read-from-string
178-
(mapconcat #'identity lines " ")))))
176+
(value (funcall (cond
177+
((fboundp 'lm--prepare-package-dependencies)
178+
'lm--prepare-package-dependencies)
179+
((fboundp 'package--prepare-dependencies)
180+
'package--prepare-dependencies)
181+
((error "elx-package-requires: BUG")))
182+
(package-read-from-string
183+
(mapconcat #'identity lines " ")))))
179184
(if extra (list value beg end indent) value))))
180185

181186
(defun elx-update-package-requires (&optional file updates indent noerror)

0 commit comments

Comments
 (0)