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

[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 "{")



reply via email to

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