> >> Feel free to change it so that instead of calling > >> `switch-to-buffer' it calls some alias or it (funcall > >> menu-bar-select-buffer-function ). > > That would be great. What do you need from me - a patch? > > For example, yes, including ChangeLog entry and a tiny note > in etc/NEWS. Attached. Changelog entry: 2011-06-17 Drew Adams * menu-bar.el: Use function variable instead of switch-to-buffer. (menu-bar-select-buffer-function): New variable. (menu-bar-update-buffers): Use menu-bar-select-buffer-function.