emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat faabc69ba8 2/2: Assume compat-XY defines definit


From: ELPA Syncer
Subject: [elpa] externals/compat faabc69ba8 2/2: Assume compat-XY defines definitions for Emacs XY.1
Date: Sat, 28 May 2022 08:57:32 -0400 (EDT)

branch: externals/compat
commit faabc69ba84598e0ba21e92506653f5b671767c2
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Assume compat-XY defines definitions for Emacs XY.1
    
    This avoids confusion when someone is tracking an older development
    release, so that compat does not assume all the functionality that was
    part of the final release was already available.  Instead on a XY.0.Z
    release, every definition is checked for availability, just like with
    any previous release.
    
    Thanks to Jacek Złydach for bringing the issue to my attention:
    
https://lists.sr.ht/~pkal/compat-devel/%3Cf8635d7d-e233-448f-b325-9e850363241c%40www.fastmail.com%3E
---
 compat-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat-macs.el b/compat-macs.el
index e1dcf81eff..4f2d44e2fd 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -93,7 +93,7 @@ DEF-FN, INSTALL-FN, CHECK-FN, ATTR and TYPE."
                          ((string-match
                            "compat-\\([[:digit:]]+\\)\\.\\(?:elc?\\)\\'"
                            file)
-                          (match-string 1 file))
+                          (concat (match-string 1 file) ".1"))
                          ((error "No version number could be extracted"))))))
          (realname (or (plist-get attr :realname)
                        (intern (format "compat--%S" name))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]