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

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

[nongnu] elpa/swift-mode 142c7db 023/496: Merge pull request #7 from syo


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 142c7db 023/496: Merge pull request #7 from syohex/fix-for-older-emacs
Date: Sun, 29 Aug 2021 11:33:00 -0400 (EDT)

branch: elpa/swift-mode
commit 142c7db2e99426fd036ecf345e1f6a5fcb0d89ae
Merge: 19a61d9 fdc576f
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>

    Merge pull request #7 from syohex/fix-for-older-emacs
    
    Fix for older Emacs(< 24.3)
---
 swift-mode.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index 6045713..e533974 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -30,6 +30,13 @@
 (require 'dash)
 (require 'rx)
 
+(eval-and-compile
+  ;; Added in Emacs 24.3
+  (unless (fboundp 'setq-local)
+    (defmacro setq-local (var val)
+      "Set variable VAR to value VAL in current buffer."
+      (list 'set (list 'make-local-variable (list 'quote var)) val))))
+
 ;; Font lock.
 
 (defvar swift-mode--type-decl-keywords



reply via email to

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