branch: elpa/swift-mode commit b0fea4795205714d5bc60204e628b4b83246876e Author: JM Ibanez <jmiba...@gmail.com> Commit: JM Ibanez <jmiba...@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"))