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

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

[nongnu] elpa/kotlin-mode e45a8f73e7 061/162: Declare dependency on Emac


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode e45a8f73e7 061/162: Declare dependency on Emacs 24.3, for setq-local
Date: Sat, 29 Jan 2022 08:25:23 -0500 (EST)

branch: elpa/kotlin-mode
commit e45a8f73e7a5b52d370cc22c12dbad9f29efc95a
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Declare dependency on Emacs 24.3, for setq-local
    
    Also, `font-lock-defaults` is always buffer-local, so `setq` is sufficient 
here.
---
 kotlin-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 7347fc7f81..84c420dc90 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -5,6 +5,7 @@
 
 ;; Author: Shodai Yokoyama (quantumcars@gmail.com)
 ;; Keywords: languages
+;; Package-Requires: ((emacs "24.3"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
@@ -222,7 +223,7 @@
 (define-derived-mode kotlin-mode prog-mode "Kotlin"
   "Major mode for editing Kotlin."
 
-  (setq-local font-lock-defaults '((kotlin-mode-font-lock-keywords) nil nil))
+  (setq font-lock-defaults '((kotlin-mode-font-lock-keywords) nil nil))
   (setq-local syntax-propertize-function 
#'kotlin-mode--syntax-propertize-function)
 
   :group 'kotlin



reply via email to

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