aboutsummaryrefslogtreecommitdiff
path: root/nov.el
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2020-02-14 22:12:52 +0100
committerVasilij Schneidermann <mail@vasilij.de>2020-02-14 22:18:35 +0100
commitdc6f6be4de0a74c7628cf5aba2072cc5f5e7a416 (patch)
tree890d020c9d46547fa759604e0143faf196418d90 /nov.el
parent4f9ba13039491ef3e60deec963e0b3bd02088fed (diff)
Style
Diffstat (limited to 'nov.el')
-rw-r--r--nov.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/nov.el b/nov.el
index f000356..1c5daf5 100644
--- a/nov.el
+++ b/nov.el
@@ -709,8 +709,8 @@ Saving is only done if `nov-save-place-file' is set."
(let ((history-forward
(cons (list nov-documents-index (point))
nov-history-forward))
- (index (nth 0 (car nov-history)))
- (opoint (nth 1 (car nov-history))))
+ (index (car (car nov-history)))
+ (opoint (cadr (car nov-history))))
(setq nov-history (cdr nov-history))
(nov-goto-document index)
(setq nov-history (cdr nov-history))
@@ -723,8 +723,8 @@ Saving is only done if `nov-save-place-file' is set."
(or nov-history-forward
(user-error "This is the last document you looked at"))
(let ((history-forward (cdr nov-history-forward))
- (index (nth 0 (car nov-history-forward)))
- (opoint (nth 1 (car nov-history-forward))))
+ (index (car (car nov-history-forward)))
+ (opoint (cadr (car nov-history-forward))))
(nov-goto-document index)
(setq nov-history-forward history-forward)
(goto-char opoint)))