From 87a9fc6dcd8e364c9ae27da27fee439dc41c2e25 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 6 Dec 2020 17:43:18 +0200 Subject: [PATCH] Improve error message text of "C-x C-SPC" * lisp/simple.el (pop-global-mark): Mention the buffer name in the error message. Suggested by T.V Raman . --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index d73bc6b0682..3c4f7562308 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6426,7 +6426,8 @@ for it.") (<= position (point-max))) (if widen-automatically (widen) - (error "Global mark position is outside accessible part of buffer"))) + (error "Global mark position is outside accessible part of buffer %s" + (buffer-name buffer)))) (goto-char position) (switch-to-buffer buffer))) -- 2.39.5