From: Richard M. Stallman Date: Fri, 9 Jul 1993 04:04:39 +0000 (+0000) Subject: (mouse-menu-bar-buffers): X-Git-Tag: emacs-19.34~11803 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=07a9765faacac296d46d89f264a6cca21fbe5fb5;p=emacs.git (mouse-menu-bar-buffers): Don't lose if all buffer names are short. --- diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 5da62849bc2..c4a2ea013b8 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -197,7 +197,7 @@ and selects that window." (setq maxlen (length (car (car head)))))) (setq tail (cdr tail))) (nconc (reverse head) - (list (cons (concat (make-string (- (/ maxlen 2) 8) ?\ ) + (list (cons (concat (make-string (max 0 (- (/ maxlen 2) 8)) ?\ ) "List All Buffers") 'list-buffers)))))))