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

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

[nongnu] elpa/lua-mode e470943 131/468: lua-mode-abbrev-table: mark abbr


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode e470943 131/468: lua-mode-abbrev-table: mark abbreviations as :system so that they're not counted as user-defined and are not saved automatically (issue #8)
Date: Thu, 5 Aug 2021 04:58:22 -0400 (EDT)

branch: elpa/lua-mode
commit e470943806845ab4e467b55b6bc3e09d32f97fa3
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    lua-mode-abbrev-table: mark abbreviations as :system so that they're not 
counted as user-defined and are not saved automatically (issue #8)
---
 lua-mode.el | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index 70edb74..de9d4bd 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -291,19 +291,17 @@ traceback location."
   '((nil "^[ \t]*\\(?:local[ \t]+\\)?function[ 
\t]+\\(\\(\\sw:\\|\\sw_\\|\\sw\\.\\|\\sw\\)+\\)" 1))
   "Imenu generic expression for lua-mode.  See `imenu-generic-expression'.")
 
-(defvar lua-mode-abbrev-table nil
-  "Abbreviation table used in lua-mode buffers.")
-
 (defvar lua-sexp-alist '(("then" . "end")
                          ("function" . "end")
                          ("do" . "end")))
 
+(defvar lua-mode-abbrev-table nil
+  "Abbreviation table used in lua-mode buffers.")
+
 (define-abbrev-table 'lua-mode-abbrev-table
-  '(
-    ("end" "end" lua-indent-line 0)
-    ("else" "else" lua-indent-line 0)
-    ("elseif" "elseif" lua-indent-line 0)
-    ))
+  '(("end" "end" lua-indent-line :system t)
+    ("else" "else" lua-indent-line :system t)
+    ("elseif" "elseif" lua-indent-line :system t)))
 
 (eval-and-compile
   (defalias 'lua-make-temp-file



reply via email to

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