]> code.delx.au - gnu-emacs/blobdiff - lisp/mouse.el
An efficient built-in mapcan
[gnu-emacs] / lisp / mouse.el
index 135e1f5d71fab933e15066067bbb0d44bae5486e..44462385b6c86ed0c0d1ad98e943913e75963cf3 100644 (file)
@@ -1638,8 +1638,8 @@ and selects that window."
              (let ((others-list
                     (mouse-buffer-menu-alist
                      ;; we don't need split-by-major-mode any more,
-                     ;; so we can ditch it with nconc.
-                     (apply 'nconc (mapcar 'cddr split-by-major-mode)))))
+                     ;; so we can ditch it with nconc (mapcan).
+                     (mapcan 'cddr split-by-major-mode))))
                (and others-list
                     (setq subdivided-menus
                           (cons (cons "Others" others-list)