Skip to content

Commit 717bf76

Browse files
committed
Fix compilation errors and warnings.
Partially addresses #79
1 parent 9c42dac commit 717bf76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

csharp-mode.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@
310310
(when (and (= emacs-major-version 24) (>= emacs-minor-version 4))
311311
(require 'cl)))
312312

313+
(require 'imenu)
314+
313315
;; ==================================================================
314316
;; c# upfront stuff
315317
;; ==================================================================
@@ -1602,6 +1604,14 @@ See also, `csharp-move-fwd-to-end-of-defun'.
16021604
(goto-char found))))))
16031605

16041606

1607+
(defun csharp--on-defun-open-curly-p ()
1608+
"return t when point is on the open-curly of a method."
1609+
(and (looking-at "{")
1610+
(not (looking-back (csharp--regexp 'class-start) nil))
1611+
(not (looking-back (csharp--regexp 'namespace-start) nil))
1612+
(looking-back (csharp--regexp 'func-start) nil)))
1613+
1614+
16051615
(defun csharp--on-class-open-curly-p ()
16061616
"return t when point is on the open-curly of a class."
16071617
(and (looking-at "{")

0 commit comments

Comments
 (0)