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

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

[nongnu] elpa/swift-mode b0fea47 168/496: Fix eval-after-load problems w


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode b0fea47 168/496: Fix eval-after-load problems when byte-compiled.
Date: Sun, 29 Aug 2021 11:33:29 -0400 (EDT)

branch: elpa/swift-mode
commit b0fea4795205714d5bc60204e628b4b83246876e
Author: JM Ibanez <jmibanez@gmail.com>
Commit: JM Ibanez <jmibanez@gmail.com>

    Fix eval-after-load problems when byte-compiled.
    
    Use a lambda instead of progn inside eval-after-load body. This is the
    behavior of the `with-eval-after-load` macro introduced in Emacs
    24.4. There seems to be a difference in semantics between progn and
    lambda when byte-compiled.
---
 swift-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index 1d60fc5..4c6a3e4 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -481,8 +481,8 @@
 ;;; Flycheck
 
 (eval-after-load 'flycheck
-  '(progn
-     (flycheck-def-option-var flycheck-swift-sdk-path nil swift
+  (lambda ()
+    (flycheck-def-option-var flycheck-swift-sdk-path nil swift
        "A path to the targeted SDK"
        :type '(choice (const :tag "Don't link against sdk" nil)
                       (string :tag "Targeted SDK path"))



reply via email to

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