changeset 11842:e8739cc8cd02

(Buffer-menu-buffer): Give more informative error message if user attempts a selection at end of buffer.
author Karl Heuer <kwzh@gnu.org>
date Wed, 17 May 1995 20:52:45 +0000
parents c93c1c56a8bb
children 3ab3cc97fadc
files lisp/buff-menu.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/buff-menu.el	Wed May 17 20:47:39 1995 +0000
+++ b/lisp/buff-menu.el	Wed May 17 20:52:45 1995 +0000
@@ -141,7 +141,7 @@
   (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