[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 5d0ffaa 113/459: Use cl-lib equivalents for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 5d0ffaa 113/459: Use cl-lib equivalents for incf and decf |
Date: |
Sun, 22 Aug 2021 13:59:08 -0400 (EDT) |
branch: externals/csharp-mode
commit 5d0ffaa8584d0ad513b83c833a71882c0c78b1c0
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Commit: Vasilij Schneidermann <v.schneidermann@gmail.com>
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 0cd0b2c 226/459: Fix fontification of using-statements., (continued)
- [elpa] externals/csharp-mode 0cd0b2c 226/459: Fix fontification of using-statements., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0d35431 228/459: Fix fontification of namespaces to match using-statement rules., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3c989a8 230/459: using: Don't mess up alnums in indentifier-fontification., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5787aef 233/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 14e0327 235/459: Bump version and updated-date., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ca1702 236/459: Make csharp-mode-map inherit from prog-mode-map, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0f65654 245/459: Add regression test, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 628a4e2 248/459: Added testcases for region fontification., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 79e0a60 256/459: New simpler build based on Cask, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bf613f8 274/459: Handle failure correctly, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5d0ffaa 113/459: Use cl-lib equivalents for incf and decf,
ELPA Syncer <=
- [elpa] externals/csharp-mode 6af6f88 111/459: Fix fontification tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7247a27 115/459: Prefix set-difference from cl.el, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 71b0e96 116/459: Fix errors and warnings in unit-tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 56a9a87 117/459: Fix backwards compatibility and broken CI-build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c446400 118/459: Remove obsolete comment, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 829ad4d 120/459: Another stab at fixing the CI., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ae1e36c 132/459: Tentative fix for imenu and generics, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f292eb 141/459: Fixed fontification hanging on a large file (3kLOC)., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ee817b0 143/459: Added a test for imenu indexing of explicit interface properties., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7c196b7 144/459: Added a minimal imenu namespace test., ELPA Syncer, 2021/08/22