unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 8876@debbugs.gnu.org
Subject: bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame
Date: Wed, 15 Jun 2011 21:00:38 -0400	[thread overview]
Message-ID: <jwvpqmer3wa.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E94A81B04CB84815AA6A6C9C69082F80@us.oracle.com> (Drew Adams's message of "Wed, 15 Jun 2011 15:06:26 -0700")

> 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





  reply	other threads:[~2011-06-16  1:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-15 22:06 bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame Drew Adams
2011-06-16  1:00 ` Stefan Monnier [this message]
2011-06-16  2:24   ` Drew Adams
2011-06-16 13:47     ` Stefan Monnier
2011-06-17 14:48       ` Drew Adams
2011-06-21  1:49         ` Stefan Monnier
2011-06-21  1:50         ` Stefan Monnier
     [not found]         ` <<jwv4o3kgdgp.fsf-monnier+emacs@gnu.org>
2013-06-17 14:34           ` Drew Adams
2013-06-17 15:46             ` Michael Heerdegen
2013-06-17 16:26               ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpqmer3wa.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=8876@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).