summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-10-26 12:54:12 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-10-26 12:54:12 +0200
commit3ff680b7ee5aba7b49ec13780c5d44c210a2b2d8 (patch)
tree3f9d00d99cc548de576b437450ebb01829e4883c /helm-utils.el
parent4c2157971fbf3f32f47422581c4cd194a1ff8cd9 (diff)
Fix duplicates in mark-ring (#1891)
and remove obsolete prefix args for mark in grep/occur actions fns. * helm-grep.el (helm-grep-action): Do it, signature have changed. (helm-grep-persistent-action): Fix call to helm-grep-action. * helm-regexp.el (helm-moccur-action): Same as helm-grep-action. (helm-moccur-goto-line): Remove prefix arg usage. (helm-moccur-goto-line-ow): Remove prefix arg usage. (helm-moccur-goto-line-of): Remove prefix arg usage.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-utils.el b/helm-utils.el
index ea99cb91..4a2c73e0 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -436,7 +436,8 @@ 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))))
+ (push-mark (point) 'nomsg)
+ (setcdr mark-ring (delete (mark-marker) (cdr mark-ring))))))
(defun helm-show-all-in-this-source-only (arg)
"Show only current source of this helm session with all its candidates.