mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
(pop-global-mark): Make pop-global-mark treat
global-mark-ring as a ring.
This commit is contained in:
parent
6e18b6c220
commit
34c3130121
@ -1518,7 +1518,8 @@ incremental search, \\[beginning-of-buffer], and \\[end-of-buffer]."
|
||||
(let* ((marker (car global-mark-ring))
|
||||
(buffer (marker-buffer marker))
|
||||
(position (marker-position marker)))
|
||||
(setq global-mark-ring (cdr global-mark-ring))
|
||||
(setq global-mark-ring (nconc (cdr global-mark-ring)
|
||||
(list (car global-mark-ring))))
|
||||
(set-buffer buffer)
|
||||
(or (and (>= position (point-min))
|
||||
(<= position (point-max)))
|
||||
|
Loading…
Reference in New Issue
Block a user