From 078c09a28dd5f5e7026f8dfb7804b77be25e51ff Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 17 May 1995 20:52:45 +0000 Subject: [PATCH] (Buffer-menu-buffer): Give more informative error message if user attempts a selection at end of buffer. --- lisp/buff-menu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 5bbafd128a4..f1eff3a003e 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -141,7 +141,7 @@ Letters do not insert themselves; instead, they are commands. (let* ((where (save-excursion (beginning-of-line) (+ (point) Buffer-menu-buffer-column))) - (name (get-text-property where 'buffer-name))) + (name (and (not (eobp)) (get-text-property where 'buffer-name)))) (if name (or (get-buffer name) (if error-if-non-existent-p -- 2.39.2