[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 89aa6fb 057/224: Eliminate non-interactive use of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 89aa6fb 057/224: Eliminate non-interactive use of `goto-line'. |
Date: |
Sat, 7 Aug 2021 09:22:18 -0400 (EDT) |
branch: elpa/paredit
commit 89aa6fb7d22f0003317f894cedd088f94ff545a0
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Eliminate non-interactive use of `goto-line'.
Ignore-this: 562a203b85842ebc368ea80f2aa65612
Using `forward-line' in `paredit-recentre-on-sexp' is simpler anyway.
darcs-hash:20101206011608-00fcc-1775f5b8c7a4eb4ab2792e5746aca95a2759dc60
---
paredit.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/paredit.el b/paredit.el
index 9c2ed24..252fa21 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1736,10 +1736,8 @@ With a prefix argument N, encompass all N S-expressions
forward."
(forward-sexp n)
(let ((end-point (point)))
(backward-sexp n)
- (let* ((start-point (point))
- (start-line (count-lines (point-min) (point)))
- (lines-on-sexps (count-lines start-point end-point)))
- (goto-line (+ start-line (/ lines-on-sexps 2)))
+ (let ((start-point (point)))
+ (forward-line (/ (count-lines start-point end-point) 2))
(recenter)))))
(defun paredit-focus-on-defun ()
- [nongnu] elpa/paredit 451ea5e 025/224: Add magic autoload comment for `paredit-mode'., (continued)
- [nongnu] elpa/paredit 451ea5e 025/224: Add magic autoload comment for `paredit-mode'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit a386bdf 031/224: Call `end-of-defun' in `paredit-reindent-defun'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0d7a39d 032/224: Un-deprecate `enable-paredit-mode' and `disable-paredit-mode'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit db3a581 037/224: Switch copying terms to GPLv3+., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit ab99e93 044/224: Simplify definition of `paredit-kill-line-in-string'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5bfc873 047/224: Fix `paredit-copy-as-kill' within strings., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d265584 045/224: Fix `paredit-kill' on whitespace character literal with margin comment., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 7b31864 046/224: Check `eolp' before using `char-after' in `paredit-kill'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 30f564d 051/224: Add utilities for `check-parens' restricted to a region., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d3723a0 059/224: Tweak second page. Remove rants and IRC reference., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 89aa6fb 057/224: Eliminate non-interactive use of `goto-line'.,
ELPA Syncer <=
- [nongnu] elpa/paredit b9f46b5 060/224: Rework third page to make it much more readable., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 24d2ade 053/224: Bump version: 22 beta -> 22., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 79fd488 058/224: Bump copyright year to 2011., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit c655f5c 052/224: Change header and footer to conform to elisp guidelines., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2b094af 065/224: Bind M-? to `paredit-convolute-sexp'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 4d6f3fc 090/224: Fix `imbalanced' -> `unbalanced' in `paredit-kill-region' docstring., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 52670b7 079/224: Fix spacing in `paredit-newline' example., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit bd439e3 083/224: Avoid trailing space when `paredit-comment-dwim' inserts code comments., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2c972a9 095/224: Omit angled delimiters from the `paredit-open-...' tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2a64a4c 064/224: Eliminate confusing comment over `paredit-splice-sexp'., ELPA Syncer, 2021/08/07