[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode fdc576f 019/496: Fix for older Emacs(< 24.3)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode fdc576f 019/496: Fix for older Emacs(< 24.3) |
Date: |
Sun, 29 Aug 2021 11:32:59 -0400 (EDT) |
branch: elpa/swift-mode
commit fdc576f3e95cf3d3b5fd6d18aadb41d4d2cad557
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@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
- [nongnu] elpa/swift-mode 1c4253b 191/496: Improve indentation for nested hash/array statements, (continued)
- [nongnu] elpa/swift-mode 1c4253b 191/496: Improve indentation for nested hash/array statements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ebc60c8 197/496: Make closure block in function argument close at the offset 0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 4bdbc23 211/496: Normalize indentation for function declration with argument list on the, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cf219aa 217/496: Improve indentation of the nested arrays and dictionaries, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 655bd60 229/496: Fix indent in trailing closure, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a2f5b33 233/496: Fix indent when operator hanging after comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 69783af 243/496: added guard statement, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f94e437 259/496: Fix wrong offset for multiline, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e5f28f8 268/496: Fix case-: for default, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 63eae17 001/496: Initial commit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fdc576f 019/496: Fix for older Emacs(< 24.3),
ELPA Syncer <=
- [nongnu] elpa/swift-mode 29857ae 002/496: Add initial files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7e3bb8e 008/496: Add package deps, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bb506d0 015/496: Add flycheck-cask to dir-locals, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 48a3a25 016/496: Correctly font-lock backtick-enclosed identifiers in let bindings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 741859e 018/496: Add `convenience` to language keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8d2720b 020/496: Add autoload token, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 71e3d6f 033/496: Remove unneeded infrastructure, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 28c5b54 027/496: More improvements to comment handling, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9b367fe 038/496: Remove duplicate in keywords list, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0bf214b 030/496: Update readme, ELPA Syncer, 2021/08/29