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

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

[elpa] externals/csharp-mode 6289cfd 051/459: Fix broken byte-compile.


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 6289cfd 051/459: Fix broken byte-compile.
Date: Sun, 22 Aug 2021 13:58:54 -0400 (EDT)

branch: externals/csharp-mode
commit 6289cfdb7030c22968cd1eca2ccdfc2ad46af55d
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Fix broken byte-compile.
    
    Fixes https://github.com/josteink/csharp-mode/issues/19
---
 .gitignore     |  4 +---
 csharp-mode.el | 56 +++++++++++++++++++++++++++++---------------------------
 makefile       |  3 +--
 3 files changed, 31 insertions(+), 32 deletions(-)

diff --git a/.gitignore b/.gitignore
index 4922a7c..1dc8ce0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,6 +40,4 @@ tramp
 *.elc
 
 # Packaging
-.cask
-
-
+.tmp
diff --git a/csharp-mode.el b/csharp-mode.el
index 4a07468..dcb79e0 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -316,6 +316,7 @@
 
 
 
+
 ;; These are only required at compile time to get the sources for the
 ;; language constants.  (The load of cc-fonts and the font-lock
 ;; related constants could additionally be put inside an
@@ -333,6 +334,34 @@
     (load "cc-langs" nil t)))
 
 (eval-and-compile
+  ;; ==================================================================
+  ;; constants used in this module
+  ;; ==================================================================
+
+  ;;(error (byte-compile-dest-file))
+  ;;(error (c-get-current-file))
+
+  (defconst csharp-aspnet-directive-re
+    "<%@.+?%>"
+    "Regex for matching directive blocks in ASP.NET files (.aspx, .ashx, 
.ascx)")
+
+
+  (defconst csharp-enum-decl-re
+    (concat
+     "\\<enum[ \t\n\r\f\v]+"
+     "\\([[:alpha:]_][[:alnum:]_]*\\)"
+     "[ \t\n\r\f\v]*"
+     "\\(:[ \t\n\r\f\v]*"
+     "\\("
+     (c-make-keywords-re nil
+                        (list "sbyte" "byte" "short" "ushort" "int" "uint" 
"long" "ulong"))
+     "\\)"
+     "\\)?")
+    "Regex that captures an enum declaration in C#"
+    )
+
+  ;; ==================================================================
+
   ;; Make our mode known to the language constant system.  Use Java
   ;; mode as the fallback for the constants we don't change here.
   ;; This needs to be done also at compile time since the language
@@ -347,33 +376,6 @@
 
 
 
-;; ==================================================================
-;; constants used in this module
-;; ==================================================================
-
-;;(error (byte-compile-dest-file))
-;;(error (c-get-current-file))
-
-(defconst csharp-aspnet-directive-re
-  "<%@.+?%>"
-  "Regex for matching directive blocks in ASP.NET files (.aspx, .ashx, .ascx)")
-
-
-(defconst csharp-enum-decl-re
-  (concat
-   "\\<enum[ \t\n\r\f\v]+"
-   "\\([[:alpha:]_][[:alnum:]_]*\\)"
-   "[ \t\n\r\f\v]*"
-   "\\(:[ \t\n\r\f\v]*"
-   "\\("
-   (c-make-keywords-re nil
-     (list "sbyte" "byte" "short" "ushort" "int" "uint" "long" "ulong"))
-   "\\)"
-   "\\)?")
-  "Regex that captures an enum declaration in C#"
-  )
-
-;; ==================================================================
 
 
 
diff --git a/makefile b/makefile
index 65d9f92..221962b 100644
--- a/makefile
+++ b/makefile
@@ -22,8 +22,7 @@ test:
 %.elc: %.el
        $(EMACS) -f batch-byte-compile $<
 
-#all: $(ELCS) test package
-all: test package
+all: $(ELCS) test package
 
 clean:
        rm -f ../$(PACKAGE_NAME).tar



reply via email to

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