diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-10-27 06:56:07 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-10-27 06:56:07 +0200 |
commit | 3b2d6cd4eb06f1202b81c0b33841390c367a9207 (patch) | |
tree | afdc5b3eeb67a6dd4aa9d83961cad30d9a8fecfd /helm-utils.el | |
parent | 3ff680b7ee5aba7b49ec13780c5d44c210a2b2d8 (diff) |
Add current mark to mark-ring and revert previous change (#1891)
There is nothing to fix here as the bug with dups in mark-ring comes
from `push-mark` itself, advising `push-mark` fixes the problem.
* helm-ring.el (helm-mark-ring-get-candidates): Push current mark to
mark-ring when it is empty, otherwise use mark-ring.
* helm-utils.el (helm-save-current-pos-to-mark-ring): Revert previous.
Diffstat (limited to 'helm-utils.el')
-rw-r--r-- | helm-utils.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helm-utils.el b/helm-utils.el index 4a2c73e0..ea99cb91 100644 --- a/helm-utils.el +++ b/helm-utils.el @@ -436,8 +436,7 @@ To use this add it to `helm-goto-line-before-hook'." (with-helm-current-buffer (unless helm-in-persistent-action (set-marker (mark-marker) (point)) - (push-mark (point) 'nomsg) - (setcdr mark-ring (delete (mark-marker) (cdr mark-ring)))))) + (push-mark (point) 'nomsg)))) (defun helm-show-all-in-this-source-only (arg) "Show only current source of this helm session with all its candidates. |