[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame
From: |
Stefan Monnier |
Subject: |
bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame |
Date: |
Wed, 15 Jun 2011 21:00:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> Dunno what the problem was with using `last-command-event', which caused
> you to switch to the lambda code above.
Somehow I do remember why: using buffers as events is not really
supported and was leading to some bugs (which I can't remember) in some
corner cases. So I changed the code to use more normal events (numbers)
and embed the buffer in the command itself (as a closure, basically)
which is conceptually much cleaner.
> It was so simple and flexible before; it seems so complex and monolithic
> now.
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 <buf>).
Stefan