[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 139816a 106/184: counsel.el (counsel-mark-ring): Add the l
From: |
Oleh Krehel |
Subject: |
[elpa] master 139816a 106/184: counsel.el (counsel-mark-ring): Add the latest mark to selection |
Date: |
Wed, 16 Oct 2019 13:15:00 -0400 (EDT) |
branch: master
commit 139816af8e65106a08e5a8ed432d185fcc629e80
Author: SAITOU Keita <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-mark-ring): Add the latest mark to selection
The mark-ring has the list of saved former marks.
So, it does not have the latest mark.
The latest mark is held by mark-marker.
This change add the latest mark to counsel-mark-ring selection.
Fixes #2252
---
counsel.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index b046d1b..d2aa51f 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3768,7 +3768,13 @@ Obeys `widen-automatically', which see."
(line (buffer-substring
(line-beginning-position) (line-end-position))))
(cons (format fmt linum line) (point)))))
- (marks (sort (delete-dups (copy-sequence mark-ring)) #'<))
+ (marks (copy-sequence mark-ring))
+ (marks
+ ;; mark-marker is empty?
+ (if (equal (mark-marker) (make-marker))
+ marks
+ (cons (copy-marker (mark-marker)) marks)))
+ (marks (sort (delete-dups marks) #'<))
(cands
;; Widen, both to save `line-number-at-pos' the trouble
;; and for `buffer-substring' to work.
- [elpa] master d73376f 010/184: ivy.el (ivy--trim-trailing-re): Add, (continued)
- [elpa] master d73376f 010/184: ivy.el (ivy--trim-trailing-re): Add, Oleh Krehel, 2019/10/16
- [elpa] master 824f8d7 072/184: counsel.el (counsel--find-return-list): Works with or without "./" prefix, Oleh Krehel, 2019/10/16
- [elpa] master 4fef498 065/184: Use file-name-at-point-functions for file commands, Oleh Krehel, 2019/10/16
- [elpa] master 3d0fcb5 064/184: ivy.el (ivy-partial): Fix trailing space issue, Oleh Krehel, 2019/10/16
- [elpa] master 7dea040 066/184: ivy.el (ivy-pre-prompt-function): Add, Oleh Krehel, 2019/10/16
- [elpa] master cd7e924 077/184: ivy.el (ivy-read): Fix docstring, Oleh Krehel, 2019/10/16
- [elpa] master da7e546 085/184: ivy.el (ivy-previous-line-and-call): Fix typo, Oleh Krehel, 2019/10/16
- [elpa] master 03fdaea 087/184: doc/ivy.org: Add more recommended key bindings, Oleh Krehel, 2019/10/16
- [elpa] master 941d408 086/184: doc/ivy.org: Fix "C-M-n" description, Oleh Krehel, 2019/10/16
- [elpa] master 4e9aaec 092/184: ivy-test: Fix tests using file names on Windows, Oleh Krehel, 2019/10/16
- [elpa] master 139816a 106/184: counsel.el (counsel-mark-ring): Add the latest mark to selection,
Oleh Krehel <=
- [elpa] master 9592cba 101/184: ivy-hydra.el: Use ivy-read-action-by-key in hydra-ivy, Oleh Krehel, 2019/10/16
- [elpa] master 79333e9 099/184: counsel.el (counsel-fonts): Add, Oleh Krehel, 2019/10/16
- [elpa] master 89deb75 096/184: counsel.el (counsel-rg): When in dired, operate on marked files, Oleh Krehel, 2019/10/16
- [elpa] master 4cddec4 102/184: Respect counsel-describe-function-function from counsel-M-x, Oleh Krehel, 2019/10/16
- [elpa] master 42fedf5 116/184: counsel.el (counsel-file-stale-p): Extract, Oleh Krehel, 2019/10/16
- [elpa] master 0895c1a 113/184: Add key binding to allow switching directory in counsel-git-grep, Oleh Krehel, 2019/10/16
- [elpa] master d27eb38 119/184: counsel.el (counsel-git-grep): Change args order so counsel-cd works, Oleh Krehel, 2019/10/16
- [elpa] master 582c9d4 014/184: swiper.el (swiper--candidates): Don't store line number as a string, Oleh Krehel, 2019/10/16
- [elpa] master 4a44c9e 018/184: counsel.el (counsel--async-last-error-string): Add for ease of debugging, Oleh Krehel, 2019/10/16
- [elpa] master 5e79f16 020/184: ivy.el (ivy--input): Fix point moving in TRAMP sessions, Oleh Krehel, 2019/10/16