[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 676cd84 160/325: Fix infinite recursion
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 676cd84 160/325: Fix infinite recursion in ergoemacs-compact-uncompact-block |
Date: |
Sat, 23 Oct 2021 18:48:44 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 676cd84bc1c1dac558a429e4babf8e262d87bdfa
Author: Walter Landry <wlandry@caltech.edu>
Commit: Walter Landry <wlandry@caltech.edu>
Fix infinite recursion in ergoemacs-compact-uncompact-block
---
ergoemacs-functions.el | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index fe62d80..39f9545 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -1147,7 +1147,7 @@ See also: `ergoemacs-compact-uncompact-block'"
(interactive)
(let ((fill-column 90002000))
(setq current-prefix-arg nil);; Fill paragraph is bound it M-q.
- (ergoemacs :remap 'fill-paragraph)))
+ (fill-paragraph)))
(defun ergoemacs-unfill-region (start end)
"Replace newline char in region by space.
@@ -1163,25 +1163,26 @@ This command is similar to a toggle of `fill-paragraph'.
When there is a text selection, act on the region."
(interactive)
;; This command symbol has a property ā'stateIsCompact-pā.
- (let (current-state-is-compact (big-fill-column-val 4333999)
(deactivate-mark nil))
-
- (save-excursion
- ;; Determine whether the text is currently compact.
- (setq current-state-is-compact
- (if (eq last-command this-command)
- (get this-command 'state-is-compact-p)
- (if (> (- (line-end-position) (line-beginning-position))
fill-column) t nil) ) )
-
- (if (region-active-p)
- (if current-state-is-compact
- (fill-region (region-beginning) (region-end))
- (let ((fill-column big-fill-column-val))
- (fill-region (region-beginning) (region-end))) )
+ (let (current-state-is-compact
+ (big-fill-column-val 4333999)
+ (deactivate-mark nil))
+ (setq current-state-is-compact
+ (if (> (- (line-end-position) (line-beginning-position)) fill-column)
+ t
+ nil
+ )
+ )
+ (if (region-active-p)
(if current-state-is-compact
- (ergoemacs :remap 'fill-paragraph)
+ (fill-region (region-beginning) (region-end))
(let ((fill-column big-fill-column-val))
- (ergoemacs :remap 'fill-paragraph))))
- (put this-command 'stateIsCompact-p (if current-state-is-compact nil
t)))))
+ (fill-region (region-beginning) (region-end))) )
+ (if current-state-is-compact
+ (fill-paragraph)
+ (let ((fill-column big-fill-column-val))
+ (fill-paragraph))))
+ )
+ )
(defun ergoemacs-top-join-line ()
"Join the current line with the line beneath it."
- [elpa] externals/ergoemacs-mode 7df49a1 123/325: Remove redundant tab-indents-region, (continued)
- [elpa] externals/ergoemacs-mode 7df49a1 123/325: Remove redundant tab-indents-region, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode f4e9a52 104/325: Remove more ergoemacs-theme, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6559fb9 103/325: Remove unused declaration, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 1fb7b06 132/325: Set most org-mode bindings in a proper function. Turn off some term mapping, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fdb9e62 139/325: Remove some C- bindings. Make M-B variable. Fix conflicts in some local modes, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode f76cc5e 147/325: Turn off pre-post command hooks and make term bindings work., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 8c0e8f7 143/325: Fix beginning of line binding in eshell, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3121362 144/325: Fix magit, message (and thus mu4e), and isearch, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode f636ec3 155/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a4f5658 158/325: Delete some tests that are no longer designed to pass, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 676cd84 160/325: Fix infinite recursion in ergoemacs-compact-uncompact-block,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode fc90704 165/325: Remove some macros by getting rid of some remappings, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 915c65f 166/325: Remove more macros and a mysteriously failing test, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9bf352f 168/325: Remove now unused macro option, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9fbd66c 173/325: Mostly turn off advice, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 846931e 175/325: Put bindings M-SPC, -delete, -up, -down into the override map, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3c06bbe 179/325: Remove some command-loop code, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9be4392 180/325: Remove lots of command-loop stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode d092102 181/325: Remove pre- and post-command hooks, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode cea18f4 182/325: Remove more command-loop stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9d758c6 190/325: Remove unused hooks, Stefan Monnier, 2021/10/23