Skip to content

Commit

Permalink
Add an error message for unreferenced markers (#1891)
Browse files Browse the repository at this point in the history
* helm-ring.el (helm-mark-ring-default-action): Do it.
  • Loading branch information
Thierry Volpiatto committed Nov 2, 2017
1 parent 8889470 commit b219217
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm-ring.el
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ This is a command for `helm-kill-ring-map'."
(unless helm-yank-point (setq helm-yank-point (point))))
(helm-goto-char target)
(helm-highlight-current-line))
;; marker point to no buffer, no need to dereference it, just
;; marker points to no buffer, no need to dereference it, just
;; delete it.
(setq mark-ring (delete target mark-ring)))))
(setq mark-ring (delete target mark-ring))
(error "Marker points to no buffer"))))

(defvar helm-source-mark-ring
(helm-build-sync-source "mark-ring"
Expand Down

0 comments on commit b219217

Please sign in to comment.