From a666581f2a58568bb7f83a369e1040920a6b2c14 Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Mon, 4 Mar 2024 22:14:26 -0800 Subject: [PATCH 1/2] Check Package-Version: header in lm-version also * lisp/emacs-lisp/lisp-mnt.el (lm-version) --- lisp/emacs-lisp/lisp-mnt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index f111a77663c..5db0b50adc3 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el @@ -415,7 +415,8 @@ lm-version "Return the version listed in file FILE, or current buffer if FILE is nil. This can be found in an RCS or SCCS header." (lm-with-file file - (or (lm-header "version") + (or (lm-header "package-version") + (lm-header "version") (let ((header-max (lm-code-start))) (goto-char (point-min)) (cond -- 2.41.0