diff options
| -rw-r--r-- | lisp/mouse.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 1b053404c3c..4741d5fc8f6 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1296,10 +1296,10 @@ again. If you do this twice in the same position, it kills the selection." | |||
| 1296 | (overlay-start mouse-secondary-overlay) | 1296 | (overlay-start mouse-secondary-overlay) |
| 1297 | (overlay-end mouse-secondary-overlay))))))) | 1297 | (overlay-end mouse-secondary-overlay))))))) |
| 1298 | 1298 | ||
| 1299 | (defcustom mouse-menu-buffer-maxlen 20 | 1299 | (defcustom mouse-buffer-menu-maxlen 20 |
| 1300 | "*Number of buffers in one pane (submenu) of the buffer menu. | 1300 | "*Number of buffers in one pane (submenu) of the buffer menu. |
| 1301 | If we have lots of buffers, divide them into groups of | 1301 | If we have lots of buffers, divide them into groups of |
| 1302 | `mouse-menu-buffer-maxlen' and make a pane (or submenu) for each one." | 1302 | `mouse-buffer-menu-maxlen' and make a pane (or submenu) for each one." |
| 1303 | :type 'integer | 1303 | :type 'integer |
| 1304 | :group 'mouse) | 1304 | :group 'mouse) |
| 1305 | 1305 | ||
| @@ -1448,15 +1448,15 @@ and selects that window." | |||
| 1448 | (defun mouse-buffer-menu-split (title alist) | 1448 | (defun mouse-buffer-menu-split (title alist) |
| 1449 | ;; If we have lots of buffers, divide them into groups of 20 | 1449 | ;; If we have lots of buffers, divide them into groups of 20 |
| 1450 | ;; and make a pane (or submenu) for each one. | 1450 | ;; and make a pane (or submenu) for each one. |
| 1451 | (if (> (length alist) (/ (* mouse-menu-buffer-maxlen 3) 2)) | 1451 | (if (> (length alist) (/ (* mouse-buffer-menu-maxlen 3) 2)) |
| 1452 | (let ((alist alist) sublists next | 1452 | (let ((alist alist) sublists next |
| 1453 | (i 1)) | 1453 | (i 1)) |
| 1454 | (while alist | 1454 | (while alist |
| 1455 | ;; Pull off the next mouse-menu-buffer-maxlen buffers | 1455 | ;; Pull off the next mouse-buffer-menu-maxlen buffers |
| 1456 | ;; and make them the next element of sublist. | 1456 | ;; and make them the next element of sublist. |
| 1457 | (setq next (nthcdr mouse-menu-buffer-maxlen alist)) | 1457 | (setq next (nthcdr mouse-buffer-menu-maxlen alist)) |
| 1458 | (if next | 1458 | (if next |
| 1459 | (setcdr (nthcdr (1- mouse-menu-buffer-maxlen) alist) | 1459 | (setcdr (nthcdr (1- mouse-buffer-menu-maxlen) alist) |
| 1460 | nil)) | 1460 | nil)) |
| 1461 | (setq sublists (cons (cons (format "Buffers %d" i) alist) | 1461 | (setq sublists (cons (cons (format "Buffers %d" i) alist) |
| 1462 | sublists)) | 1462 | sublists)) |