[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tmr 81aa6ce65c 6/7: Use forward-line instead of {next,
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tmr 81aa6ce65c 6/7: Use forward-line instead of {next, previous}-line |
Date: |
Wed, 11 May 2022 04:57:56 -0400 (EDT) |
branch: externals/tmr
commit 81aa6ce65cbc3f47a5a69c280f45088c9dd79730
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use forward-line instead of {next,previous}-line
This is done to placate the compiler. The other functions are meant for
interactive use.
---
tmr-tabulated.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tmr-tabulated.el b/tmr-tabulated.el
index ca1f8e4066..51f6da2c89 100644
--- a/tmr-tabulated.el
+++ b/tmr-tabulated.el
@@ -82,16 +82,16 @@ Interactively, use the timer at point."
"Move the point to the next entry if there is one or to the previous one.
Point isn't moved if point is on the only entry."
(if (tmr-tabulated--next-entry)
- (next-line)
+ (forward-line 1)
(when (tmr-tabulated--previous-entry)
- (previous-line))))
+ (forward-line -1))))
(defun tmr-tabulated--previous-entry ()
"Return the entry on the line before point, nil if none."
(save-excursion
(setf (point) (line-beginning-position))
(unless (bobp)
- (previous-line)
+ (forward-line -1)
(tabulated-list-get-id))))
(defun tmr-tabulated--next-entry ()
@@ -99,7 +99,7 @@ Point isn't moved if point is on the only entry."
(save-excursion
(setf (point) (line-end-position))
(unless (eobp)
- (next-line)
+ (forward-line 1)
(tabulated-list-get-id))))
(defun tmr-tabulated--get-timer-at-point ()
- [elpa] externals/tmr updated (4bf30baacb -> d8071f7476), ELPA Syncer, 2022/05/11
- [elpa] externals/tmr 41c44c2154 3/7: tmr-tabulated: Bind "k" to the new tmr-tabulated-cancel command, ELPA Syncer, 2022/05/11
- [elpa] externals/tmr 81aa6ce65c 6/7: Use forward-line instead of {next, previous}-line,
ELPA Syncer <=
- [elpa] externals/tmr 15089d145e 2/7: tmr-tabulated: Add documentation to the Commentary section, ELPA Syncer, 2022/05/11
- [elpa] externals/tmr b240741a14 4/7: Add Damien Cassou as author, ELPA Syncer, 2022/05/11
- [elpa] externals/tmr 4d8c70530c 1/7: tmr-cancel: Fix, ELPA Syncer, 2022/05/11
- [elpa] externals/tmr d8071f7476 7/7: Use let bound variable in tmr--read-timer, ELPA Syncer, 2022/05/11
- [elpa] externals/tmr 90526a0310 5/7: Fix placement of comma for Authors, ELPA Syncer, 2022/05/11