# HG changeset patch # User Richard M. Stallman # Date 771554083 0 # Node ID 4ab8723cd49101a5247222a30b1dec5e79719989 # Parent 3dd8448eee15fba3c203325ff5d915df8ef62e57 (pop-global-mark): Discard entries for nonexistent buffers. diff -r 3dd8448eee15 -r 4ab8723cd491 lisp/simple.el --- a/lisp/simple.el Tue Jun 14 00:21:40 1994 +0000 +++ b/lisp/simple.el Tue Jun 14 00:34:43 1994 +0000 @@ -1450,6 +1450,9 @@ (defun pop-global-mark () "Pop off global mark ring and jump to the top location." (interactive) + ;; Pop entries which refer to non-existent buffers. + (while (and global-mark-ring (not (marker-buffer (car global-mark-ring)))) + (setq global-mark-ring (cdr global-mark-ring))) (or global-mark-ring (error "No global mark set")) (let* ((marker (car global-mark-ring))