Skip to content

Commit 59aa5ac

Browse files
authored
Merge pull request #305 from razzmatazz/master
omnisharp.el: package-lint the package and update version to 4.0
2 parents 93c1889 + 21e6e15 commit 59aa5ac

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

omnisharp.el

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
;; -*- mode: Emacs-Lisp; lexical-binding: t; -*-
2-
;;; omnisharp.el --- Omnicompletion (intellisense) and more for C#
3-
;; Copyright (C) 2013 Mika Vilpas (GPLv3)
4-
;; Author: Mika Vilpas
5-
;; Version: 3.4
1+
;;; omnisharp.el --- Omnicompletion (intellisense) and more for C# -*- lexical-binding: t; -*-
2+
3+
;; Copyright (C) 2013-2017 Mika Vilpas and others (GPLv3)
4+
;; Author: Mika Vilpas and others
5+
;; Version: 4.0
66
;; Url: https://github.com/Omnisharp/omnisharp-emacs
7-
;; Package-Requires: ((json "1.2") (flycheck "30") (dash "2.12.1") (auto-complete "1.4") (popup "0.5.1") (csharp-mode "0.8.7") (cl-lib "0.5") (s "1.10.0") (shut-up "0.3.2"))
8-
;; Keywords: csharp c# IDE auto-complete intellisense
7+
;; Package-Requires: ((emacs "24") (flycheck "30") (dash "2.12.0") (auto-complete "1.4") (popup "0.5.1") (csharp-mode "0.8.7") (cl-lib "0.5") (s "1.10.0") (shut-up "0.3.2"))
8+
;; Keywords: languages csharp c# IDE auto-complete intellisense
99

1010
;;; Commentary:
1111
;; omnisharp-emacs is a port of the awesome OmniSharp server to the
@@ -305,7 +305,7 @@ the user selects a completion and the completion is inserted."
305305

306306
(defun omnisharp--flycheck-start (checker callback)
307307
"Start an OmniSharp syntax check with CHECKER.
308-
CALLBACK is the status callback passed by Flycheck."
308+
CALLBACK is the status callback passed by Flycheck."
309309
;; Put the current buffer into the closure environment so that we have access
310310
;; to it later.
311311
(let ((buffer (current-buffer)))
@@ -346,8 +346,7 @@ locations in the json."
346346
cursor at that location"
347347
(let* ((element-line (cdr (assoc 'Line element)))
348348
(element-column (cdr (assoc 'Column element)))
349-
(element-filename (omnisharp--get-filename element))
350-
(use-buffer (current-buffer)))
349+
(element-filename (omnisharp--get-filename element)))
351350
(save-excursion
352351
(omnisharp-go-to-file-line-and-column-worker
353352
element-line
@@ -376,12 +375,11 @@ cursor at that location"
376375
(error nil)))
377376

378377
(defun omnisharp-format-find-output-to-ido (item)
379-
(let (filename (omnisharp--get-filename item))
380-
(cons
381-
(cons
382-
(car (car item))
383-
(concat (car (last (split-string filename "/"))) ": " (s-trim (cdr (car item)))))
384-
(cdr item))))
378+
(cons
379+
(cons
380+
(car (car item))
381+
(concat (car (last (split-string filename "/"))) ": " (s-trim (cdr (car item)))))
382+
(cdr item)))
385383

386384
(defun omnisharp-format-symbol (item)
387385
(cons
@@ -428,7 +426,7 @@ cursor at that location"
428426
(condition-case nil
429427
(forward-sexp)
430428
(error nil))
431-
429+
432430
(when (> (point) start-point)
433431
(setq found-point test-point)
434432
(setq found-start t))
@@ -470,4 +468,3 @@ cursor at that location"
470468
(provide 'omnisharp)
471469

472470
;;; omnisharp.el ends here
473-

0 commit comments

Comments
 (0)