[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 fro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 from josteink/feature-cl-lib |
Date: |
Sun, 22 Aug 2021 13:59:08 -0400 (EDT) |
branch: externals/csharp-mode
commit 64eb7dbfafedb51c05ba8bbef88e2800153967f7
Merge: a182957 5d0ffaa
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Merge pull request #47 from josteink/feature-cl-lib
Use cl-lib equivalents for incf and decf
---
csharp-mode-pkg.el.template | 3 ++-
csharp-mode.el | 26 +++++++++++++-------------
2 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/csharp-mode-pkg.el.template b/csharp-mode-pkg.el.template
index 9f10ccb..34e209b 100644
--- a/csharp-mode-pkg.el.template
+++ b/csharp-mode-pkg.el.template
@@ -1,4 +1,5 @@
(define-package
"csharp-mode"
"VERSION"
- "C# mode derived mode")
+ "C# mode derived mode"
+ '((cl-lib "0.5")))
diff --git a/csharp-mode.el b/csharp-mode.el
index 10057d7..ace710c 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -288,7 +288,7 @@
(require 'cc-mode)
;; cc-defs in emacs 24.4 depends on cl-macroexpand-all, but does not load 'cl
itself.
-(require 'cl)
+(require 'cl-lib)
;; ==================================================================
;; c# upfront stuff
@@ -2139,7 +2139,7 @@ Upon entry, it's assumed that the parens included in S.
(setq state 0))
;; non-ws indicates the type spec is beginning
(t
- (incf i)
+ (cl-incf i)
(setq state 3
need-type nil
nesting 0
@@ -2149,9 +2149,9 @@ Upon entry, it's assumed that the parens included in S.
;; slurping type
((= state 3)
(cond
- ((= ?> c) (incf nesting))
+ ((= ?> c) (cl-incf nesting))
((= ?< c)
- (decf nesting)
+ (cl-decf nesting)
(setq need-type t))
;; ws or comma maybe signifies the end of the typespec
@@ -2177,9 +2177,9 @@ Upon entry, it's assumed that the parens included in S.
((string-match "[ \t\f\v\n\r]" cs)
t)
- ((= 93 c) (incf nesting)) ;; sq brack
+ ((= 93 c) (cl-incf nesting)) ;; sq brack
((= 91 c) ;; open sq brack
- (decf nesting))
+ (cl-decf nesting))
;; handle this (extension methods), out, ref, params
((and (>= i 5)
@@ -2216,7 +2216,7 @@ Upon entry, it's assumed that the parens included in S.
t)))
)
- (decf i))
+ (cl-decf i))
(if (and (= state 3) (= nesting 0))
(setq new (cons (substring s2 i ix2) new)))
@@ -2262,7 +2262,7 @@ For this input:
((and (= state 1) (or (= c 9) (= c 32)))
(setq result (substring sig (1+ i))
i 0)))
- (decf i))
+ (cl-decf i))
result))
@@ -2417,7 +2417,7 @@ more open-curlies are found.
;; count the using statements
(while (re-search-forward (csharp--regexp 'using-stmt) limit t)
- (incf count))
+ (cl-incf count))
(setq marquis (if (eq count 1) "using (1)"
(format "usings (%d)" count)))
@@ -2662,7 +2662,7 @@ this fn will be something like this:
(xelt (assoc topic new)))
(funcall helper (cdr list)
(if xelt
- (progn (incf (cdr xelt)) new)
+ (progn (cl-incf (cdr xelt)) new)
(cons (cons topic 1) new))))))))
(nreverse (funcall helper list nil))))
@@ -2731,7 +2731,7 @@ See also, `string-lastindexof'
(setq c2 (aref s i))
(if (= c c2)
(setq ix i))
- (incf i))
+ (cl-incf i))
ix))
(defun string-lastindexof (s c)
@@ -2747,7 +2747,7 @@ See also, `string-indexof'
(setq c2 (aref s i))
(if (= c c2)
(setq ix i))
- (decf i))
+ (cl-decf i))
ix))
@@ -2825,7 +2825,7 @@ Returns a new list, containing sublists.
label (concat "from " (csharp--imenu-submenu-label (caar
this-chunk) base-name))
new (cons (cons label this-chunk) new)
len (- len chunksz))
- (incf i))
+ (cl-incf i))
new)))))
- [elpa] externals/csharp-mode a854be8 094/459: Bump version., (continued)
- [elpa] externals/csharp-mode a854be8 094/459: Bump version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d85cc3d 103/459: Add unit-test for hooks during mode-activation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8dd56f4 100/459: Reproduce issue #42., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ecae8b 099/459: Add support for devenv compilation-output., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b061f8a 104/459: Add unit-test for indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 831bd53 108/459: Fix "make clean"., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec`, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 494cbd9 106/459: Merge pull request #45 from wasamasa/fix-flet-warning, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a182957 112/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 03e6200 109/459: Emacs: Tentative fix for fontification issues., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 from josteink/feature-cl-lib,
ELPA Syncer <=
- [elpa] externals/csharp-mode 165a128 028/459: Update maintainer-ship and new repo-URL., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ac6a1ff 036/459: Don't package stuff we only need for the build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f000c97 037/459: Add link to Travis., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0762f78 038/459: remove the debug (message "Loading ...") forms, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49d213a 045/459: Remove csharp-insert-open-brace. Recommend electric-pair-mode instead., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e73ad4e 071/459: Merge pull request #30 from binki/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and use filename functions, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2303fe0 074/459: Add msbuild and xbuild log-files for ERT-testing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 69eaa1a 080/459: Add tests for compilation-mode regexps., ELPA Syncer, 2021/08/22