[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letre
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec` |
Date: |
Sun, 22 Aug 2021 13:59:06 -0400 (EDT) |
branch: externals/csharp-mode
commit ba36d6c771e49a3579d91f9efa684ae57a5731fc
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Commit: Vasilij Schneidermann <v.schneidermann@gmail.com>
Replace `flet` with `letrec`
Closes #39.
---
csharp-mode.el | 79 ++++++++++++++++++++++++++++++----------------------------
1 file changed, 41 insertions(+), 38 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 0a02034..4a2f9b4 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -2647,16 +2647,18 @@ this fn will be something like this:
(\"(bottom)\" . 1))
"
- (flet ((helper (list new)
- (if (null list) new
- (let* ((elt (car list))
- (topic (csharp--make-plural (csharp--first-word (car
elt))))
- (xelt (assoc topic new)))
- (helper (cdr list)
- (if xelt
- (progn (incf (cdr xelt)) new)
- (cons (cons topic 1) new)))))))
- (nreverse (helper list nil))))
+ (letrec ((helper
+ (lambda (list new)
+ (if (null list) new
+ (let* ((elt (car list))
+ (topic (csharp--make-plural
+ (csharp--first-word(car elt))))
+ (xelt (assoc topic new)))
+ (funcall helper (cdr list)
+ (if xelt
+ (progn (incf (cdr xelt)) new)
+ (cons (cons topic 1) new))))))))
+ (nreverse (funcall helper list nil))))
@@ -2914,36 +2916,37 @@ out into multiple submenus.
"
(let ((counts (csharp--imenu-counts menu-alist)))
- (flet ((helper
- (list new)
- (if (null list)
- new
- (let* ((elt (car list))
- (topic (csharp--make-plural (csharp--first-word (car
elt))))
- (xelt (assoc topic new)))
- (helper
- (cdr list)
- (if xelt
- (progn
- (rplacd xelt (cons elt (cdr xelt)))
- new)
- (cons
-
- (cond
- ((> (cdr (assoc topic counts))
- csharp-imenu-max-similar-items-before-extraction)
- (cons topic (list elt)))
-
- ((imenu--subalist-p elt)
- (cons (car elt)
- (csharp--imenu-reorg-alist-intelligently (cdr
elt))))
- (t
- elt))
-
- new)))))))
+ (letrec ((helper
+ (lambda (list new)
+ (if (null list)
+ new
+ (let* ((elt (car list))
+ (topic (csharp--make-plural
+ (csharp--first-word (car elt))))
+ (xelt (assoc topic new)))
+ (funcall
+ helper (cdr list)
+ (if xelt
+ (progn
+ (rplacd xelt (cons elt (cdr xelt)))
+ new)
+ (cons
+
+ (cond
+ ((> (cdr (assoc topic counts))
+ csharp-imenu-max-similar-items-before-extraction)
+ (cons topic (list elt)))
+
+ ((imenu--subalist-p elt)
+ (cons (car elt)
+ (csharp--imenu-reorg-alist-intelligently (cdr
elt))))
+ (t
+ elt))
+
+ new))))))))
(csharp--imenu-break-into-submenus
- (nreverse (helper menu-alist nil))))))
+ (nreverse (funcall helper menu-alist nil))))))
- [elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode regexps into constants., (continued)
- [elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode regexps into constants., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 334566c 083/459: Support emacs binary being installed to path with whitespace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c9e1aa9 081/459: Merge pull request #29 from josteink/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f1cd209 091/459: fontify var as a typeless declaration, ELPA Syncer, 2021/08/22
- [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 <=
- [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, 2021/08/22
- [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