From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: RFC: status icon support Date: Sun, 13 Jan 2008 20:49:42 -0700 Message-ID: References: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200284603 4954 80.91.229.12 (14 Jan 2008 04:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 04:23:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 05:23:44 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 1JEGrN-0005vG-16 for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 05:23:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEGqy-0004Li-Ig for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2008 23:23:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEGqv-0004LG-5s for emacs-devel@gnu.org; Sun, 13 Jan 2008 23:23:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEGqt-0004Ks-I8 for emacs-devel@gnu.org; Sun, 13 Jan 2008 23:23:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEGqt-0004Kp-BX for emacs-devel@gnu.org; Sun, 13 Jan 2008 23:23:11 -0500 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEGqt-00048a-15 for emacs-devel@gnu.org; Sun, 13 Jan 2008 23:23:11 -0500 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0E4NAxd018778; Sun, 13 Jan 2008 23:23:10 -0500 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0E4N907026851; Sun, 13 Jan 2008 23:23:09 -0500 Original-Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0E4N8SU015104; Sun, 13 Jan 2008 23:23:09 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 505E737824D; Sun, 13 Jan 2008 20:49:42 -0700 (MST) X-Attribution: Tom In-Reply-To: (YAMAMOTO Mitsuharu's message of "Mon\, 14 Jan 2008 12\:47\:14 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 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:86877 Archived-At: >>>>> ">" == YAMAMOTO Mitsuharu writes: >> - PVEC_TYPE_MASK = 0x1ffe00 >> + PVEC_STATUS_ICON = 0x200000, >> + PVEC_TYPE_MASK = 0x2ffe00 >> The introduction of a new Lisp data type for this purpose looks rather >> unusual compared with what other kinds of existing objects do. For >> example, images, which are more fundamental notion I think, do not >> have a dedicated Lisp data type but are represented by image >> descriptors that are just lists of the form `(image . PROPS)'. Ok. I suppose I could pretty easily change the lisp-visible representation to a cons like (status-icon . N), where N is an index into a table in systray.c. What would you think of that? Tom