unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: RFC: status icon support again
Date: Sun, 03 Feb 2008 00:35:37 -0700	[thread overview]
Message-ID: <m3r6fu4hme.fsf@fleche.redhat.com> (raw)
In-Reply-To: <wlr6fuv6az.wl%mituharu@math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Sun\, 03 Feb 2008 16\:37\:56 +0900")

>>>>> ">" == YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:

>>>>> On Sat, 02 Feb 2008 23:35:18 -0700, Tom Tromey <tromey@redhat.com> said:
>> * I looked a little at rewriting so status icons would be part of
>> keymaps, but this looked complicated and I didn't see a benefit --
>> in particular this code has no relation to toolbars at all, and I
>> didn't think any code could be shared.

>> Of course code cannot be shared between them without changing the
>> fundamental design of your code for status icons.  Do you claim that
>> status icons and tool bar icons are inherently different enough to
>> resort to different design in implementation code and also in elisp
>> interface?

I don't want to make any very strong claims.  I am not really expert
at Emacs internals.

>> Another benefit of the use of keymaps is that it makes easier to move
>> between status icons from/to tool bar icons (and possibly also between
>> menu bar items?), in the case that the use of either is
>> impossible/inappropriate.

In my view toolbars and the status area are very different; though it
is true that there is some overlap between them.

Pretty much every buffer can be expected to have a toolbar.  It is
typical for the toolbar to change as the user uses different parts of
an application.

On the other hand, space for status icons is limited and generally
they should be used for more "global" things.  It would be
disconcerting if the visible status icons changed frequently, say in
response to switching buffers.

In an earlier message you mentioned toolbars being integrated into
redisplay.  This was one disconnect for me -- I don't see how, or why,
we would want to integrate status icons into redisplay.  They are not
connected to a frame at all.

>> I think user-configurable event dispatcher
>> tables should always be implemented as keymaps unless there are strong
>> reasons to avoid them.

May I ask why?

I have basically two reasons for the approach I have taken.

First, it is simple and easy to understand.  In Gtk, a status icon
only has two possible events; using a keymap for this seemed like
overkill.

Second, unlike the keymap idea, I knew how to implement it this way.
I suppose ignorance is no excuse, though.

Could you help with the next reimplementation?

Tom




  reply	other threads:[~2008-02-03  7:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-03  6:35 RFC: status icon support again Tom Tromey
2008-02-03  7:37 ` YAMAMOTO Mitsuharu
2008-02-03  7:35   ` Tom Tromey [this message]
2008-02-03  9:23     ` YAMAMOTO Mitsuharu
2008-02-03 17:18       ` Tom Tromey
2008-02-03 10:12     ` YAMAMOTO Mitsuharu
2008-02-03 17:11       ` Tom Tromey
2008-02-04  3:13     ` Stefan Monnier

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=m3r6fu4hme.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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).