branch: externals/csharp-mode commit 717bf769750958410995ce4de21c53f75d257a6e Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@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 "{")