branch: elpa/swift-mode
commit fdc576f3e95cf3d3b5fd6d18aadb41d4d2cad557
Author: Syohei YOSHIDA <syo...@gmail.com>
Commit: Syohei YOSHIDA <syo...@gmail.com>

    Fix for older Emacs(< 24.3)
    
    'setq-local' is introduced at Emacs 24.3.
---
 swift-mode.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index 4cc7696..e8b57d9 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