[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 717bf76 194/459: Fix compilation errors and
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 717bf76 194/459: Fix compilation errors and warnings. |
Date: |
Sun, 22 Aug 2021 13:59:25 -0400 (EDT) |
branch: externals/csharp-mode
commit 717bf769750958410995ce4de21c53f75d257a6e
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Fix compilation errors and warnings.
Partially addresses https://github.com/josteink/csharp-mode/issues/79
---
csharp-mode.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/csharp-mode.el b/csharp-mode.el
index 4ad7a82..fbbcaff 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -310,6 +310,8 @@
(when (and (= emacs-major-version 24) (>= emacs-minor-version 4))
(require 'cl)))
+(require 'imenu)
+
;; ==================================================================
;; c# upfront stuff
;; ==================================================================
@@ -1602,6 +1604,14 @@ See also, `csharp-move-fwd-to-end-of-defun'.
(goto-char found))))))
+(defun csharp--on-defun-open-curly-p ()
+ "return t when point is on the open-curly of a method."
+ (and (looking-at "{")
+ (not (looking-back (csharp--regexp 'class-start) nil))
+ (not (looking-back (csharp--regexp 'namespace-start) nil))
+ (looking-back (csharp--regexp 'func-start) nil)))
+
+
(defun csharp--on-class-open-curly-p ()
"return t when point is on the open-curly of a class."
(and (looking-at "{")
- [elpa] externals/csharp-mode adb7928 175/459: New test-macros for assess., (continued)
- [elpa] externals/csharp-mode adb7928 175/459: New test-macros for assess., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e2c9f85 181/459: New imenu-implementation for csharp-mode., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7943738 182/459: Add volatile keyword, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b4b9d61 183/459: Add volatile to imenu, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9a1ddba 185/459: Merge branch 'jtbm37/master', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a8def67 186/459: Add missing test-file. Fix build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b609f42 187/459: New imenu test-file for method-indexing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b448614 190/459: Fix fontification of methods found in test-file., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4a396e3 189/459: Add tests for imenu method-indexing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9c42dac 193/459: Move all defcustoms to the top., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 717bf76 194/459: Fix compilation errors and warnings.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 7baacd5 196/459: Make imenu-tests less verbose., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9616fd0 192/459: Fix method-name fontification tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 04958ec 198/459: Fix byte-compilation warnings., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49a957b 199/459: Super-ugly hacks to fix build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode aa4e5db 201/459: Escape both quoting and quoted double quote, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 48dd7ee 202/459: Remove empty line at file start, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 803a362 203/459: Move log functions back down where they were., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8a9ab5a 204/459: imenu: Add test-cases for generic methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b56c250 205/459: Add fontification tests for generic methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f83e2e3 207/459: Fix indentation of generic type-initializers., ELPA Syncer, 2021/08/22