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

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

[elpa] externals/transient 4d44d08e90 181/366: Tell package.el to compil


From: Jonas Bernoulli
Subject: [elpa] externals/transient 4d44d08e90 181/366: Tell package.el to compile this library properly
Date: Tue, 25 Jan 2022 18:54:39 -0500 (EST)

branch: externals/transient
commit 4d44d08e90355a8ef36aaad1f9f79c95de1ce0e9
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Tell package.el to compile this library properly
    
    I.e. don't leak the previous (and currently loaded) version of
    it into the byte-code of the new version that is being installed.
    Do not add the `async' package as a dependency.  Instead rely on
    Magit depending on that already.
---
 lisp/transient.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/transient.el b/lisp/transient.el
index f5cd8386d3..ae11a1d4be 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -56,6 +56,14 @@
 (eval-when-compile
   (require 'subr-x))
 
+(and (require 'async-bytecomp nil t)
+     (let ((pkgs (bound-and-true-p async-bytecomp-allowed-packages)))
+       (if (consp pkgs)
+           (cl-intersection '(all magit transient) pkgs)
+         (memq pkgs '(all t))))
+     (fboundp 'async-bytecomp-package-mode)
+     (async-bytecomp-package-mode 1))
+
 (declare-function info 'info)
 (declare-function Man-find-section 'man)
 (declare-function Man-next-section 'man)



reply via email to

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