From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: RFC: status icon support again Date: Sun, 03 Feb 2008 22:13:27 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202094833 3330 80.91.229.12 (4 Feb 2008 03:13:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 03:13:53 +0000 (UTC) Cc: YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 04:14:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLrmf-00019F-6B for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2008 04:14:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLrmC-0006c5-Sp for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2008 22:13:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLrm9-0006c0-KJ for emacs-devel@gnu.org; Sun, 03 Feb 2008 22:13:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLrm7-0006bh-6B for emacs-devel@gnu.org; Sun, 03 Feb 2008 22:13:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLrm7-0006be-2h for emacs-devel@gnu.org; Sun, 03 Feb 2008 22:13:39 -0500 Original-Received: from 206-248-159-121.dsl.teksavvy.com ([206.248.159.121] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLrm7-0006Zc-4h for emacs-devel@gnu.org; Sun, 03 Feb 2008 22:13:39 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 24D9CB410D; Sun, 3 Feb 2008 22:13:27 -0500 (EST) In-Reply-To: (Tom Tromey's message of "Sun, 03 Feb 2008 00:35:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88126 Archived-At: > 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. [ Probably talking nonsense because I know nothing about your patch: ] Maybe you could simply use a separate keymap specifically for the status icons. This would be stored in a terminal-local variable, so each terminal (aka display) could get its own set of status icons. The main problem I can imagine is that modifying the keymap will not automatically call the status-icon code, so we'd have to either constantly check this keymap for changes, or use a force-status-icon-update function which would cause a rescan of the keymap to discover which icons should be added/removed/modified/... Not sure if it's really better than special purpose code. And of course, I'm ignoring (and ignorant) of the other side: how to react to the user clicking on one of those icons. Should these events be looked in the usual keymaps? Ideally the C code should just provide a low-level access to the facilities on top of which either solution can be implemented in elisp. Stefan