diff options
| author | Richard M. Stallman | 1995-01-05 23:53:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-05 23:53:01 +0000 |
| commit | 34c313012144acc38328c3c8e226f7fc22c2ed64 (patch) | |
| tree | 7f01ff315468bbcc730a974a122550b8d1082a0f | |
| parent | 6e18b6c220b17ce0ca5653b5595cb474d9b7a550 (diff) | |
| download | emacs-34c313012144acc38328c3c8e226f7fc22c2ed64.tar.gz emacs-34c313012144acc38328c3c8e226f7fc22c2ed64.zip | |
(pop-global-mark): Make pop-global-mark treat
global-mark-ring as a ring.
| -rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6583d0411ef..378c220f4b9 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1518,7 +1518,8 @@ incremental search, \\[beginning-of-buffer], and \\[end-of-buffer]." | |||
| 1518 | (let* ((marker (car global-mark-ring)) | 1518 | (let* ((marker (car global-mark-ring)) |
| 1519 | (buffer (marker-buffer marker)) | 1519 | (buffer (marker-buffer marker)) |
| 1520 | (position (marker-position marker))) | 1520 | (position (marker-position marker))) |
| 1521 | (setq global-mark-ring (cdr global-mark-ring)) | 1521 | (setq global-mark-ring (nconc (cdr global-mark-ring) |
| 1522 | (list (car global-mark-ring)))) | ||
| 1522 | (set-buffer buffer) | 1523 | (set-buffer buffer) |
| 1523 | (or (and (>= position (point-min)) | 1524 | (or (and (>= position (point-min)) |
| 1524 | (<= position (point-max))) | 1525 | (<= position (point-max))) |