From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Display-local variables (Re: It is time for a feature freeze) Date: 20 Apr 2004 12:18:37 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87eks0654s.fsf@sno.mundell.ukfsn.org> <87n06bp4ng.fsf@sno.mundell.ukfsn.org> <8765cwkejr.fsf@mail.jurta.org> <200404071157.UAA25094@etlken.m17n.org> <200404071312.WAA25268@etlken.m17n.org> <87zn9nqras.fsf@emacswiki.org> <87hdvux5uz.fsf@orebokech.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1082449711 21536 80.91.224.253 (20 Apr 2004 08:28:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2004 08:28:31 +0000 (UTC) Cc: David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 20 10:28:21 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFqc8-0006Eo-00 for ; Tue, 20 Apr 2004 10:28:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFqc8-00049K-00 for ; Tue, 20 Apr 2004 10:28:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFqbd-0002Y5-PG for emacs-devel@quimby.gnus.org; Tue, 20 Apr 2004 04:27:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFqao-0002Wq-Fb for emacs-devel@gnu.org; Tue, 20 Apr 2004 04:26:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFqaH-0002JL-Ou for emacs-devel@gnu.org; Tue, 20 Apr 2004 04:26:56 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BFqZa-0002AU-Kl for emacs-devel@gnu.org; Tue, 20 Apr 2004 04:25:42 -0400 Original-Received: (qmail 32619 invoked from network); 20 Apr 2004 08:18:57 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 20 Apr 2004 08:18:57 -0000 Original-To: lorentey@elte.hu (=?utf-8?b?TMWRcmVudGV5IEvDoXJvbHk=?=) In-Reply-To: Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21931 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21931 lorentey@elte.hu (L=C5=91rentey K=C3=A1roly) writes: > Do you know an easy way to provide this functionality without > Lisp-level display types? (Well, I guess I could assign an id number > for each display, but that does not sound like the Emacs Way. Well, I don't see that it would be wrong to use e.g. an integer to identify a display in emacs. For example, characters and keymaps are not 1st level lisp objects either. But in some cases it would probably be nice to identify a display as e.g. #. But you could do (display-name id) to retrieve that information when needed. In any case, you must find a way to do this generically for the non-X ports. An integer would probably work fine there too? >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 > For example, handling deleted displays would be hard to do right.) I don't quite follow. The functions that operate on a display object vs. display id must still ensure that DISPLAY_LIVE_P or some such -- probably by traversing some list of active displays. Whether it does that by looking for a display object or a display id doesn't seem to make much difference to me. --=20 Kim F. Storm http://www.cua.dk