aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-12-06 17:43:18 +0200
committerEli Zaretskii2020-12-06 17:43:18 +0200
commit87a9fc6dcd8e364c9ae27da27fee439dc41c2e25 (patch)
treeacc020ce5d515d63007642d6987b46bcad226ebe
parent2bd76cc107b415ccdebdfad3a2fad71e2adbaa51 (diff)
downloademacs-87a9fc6dcd8e364c9ae27da27fee439dc41c2e25.tar.gz
emacs-87a9fc6dcd8e364c9ae27da27fee439dc41c2e25.zip
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 <raman@google.com>.
-rw-r--r--lisp/simple.el3
1 files changed, 2 insertions, 1 deletions
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.")
6426 (<= position (point-max))) 6426 (<= position (point-max)))
6427 (if widen-automatically 6427 (if widen-automatically
6428 (widen) 6428 (widen)
6429 (error "Global mark position is outside accessible part of buffer"))) 6429 (error "Global mark position is outside accessible part of buffer %s"
6430 (buffer-name buffer))))
6430 (goto-char position) 6431 (goto-char position)
6431 (switch-to-buffer buffer))) 6432 (switch-to-buffer buffer)))
6432 6433