From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lorentey@elte.hu (=?iso-8859-2?q?L=F5rentey_K=E1roly?=) Newsgroups: gmane.emacs.devel Subject: Display-local variables (Re: It is time for a feature freeze) Date: Mon, 19 Apr 2004 17:49:31 +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=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1082397109 9834 80.91.224.253 (19 Apr 2004 17:51:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2004 17:51:49 +0000 (UTC) Cc: "Kim F. Storm" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 19 19:51:34 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 1BFcvd-00014B-00 for ; Mon, 19 Apr 2004 19:51:33 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFcvd-0008CY-00 for ; Mon, 19 Apr 2004 19:51:33 +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 1BFcnu-0001zx-I8 for emacs-devel@quimby.gnus.org; Mon, 19 Apr 2004 13:43:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFcSj-0006Na-BO for emacs-devel@gnu.org; Mon, 19 Apr 2004 13:21:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFcOf-000569-V0 for emacs-devel@gnu.org; Mon, 19 Apr 2004 13:18:01 -0400 Original-Received: from [157.181.1.137] (helo=mx1.elte.hu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFcO5-0004tg-SU; Mon, 19 Apr 2004 13:16:54 -0400 Original-Received: from mailbox1.caesar.elte.hu (mailbox1.caesar.elte.hu [157.181.151.157]) by mx1.elte.hu (Postfix) with ESMTP id B410A277515; Mon, 19 Apr 2004 17:50:23 +0200 (CEST) Original-Received: from eris (eris.elte.hu [157.181.150.146]) by mailbox1.caesar.elte.hu (Postfix) with ESMTP id 5BCA2A079515; Mon, 19 Apr 2004 17:50:05 +0200 (CEST) Original-Received: by eris (Postfix, from userid 1000) id 9E9A247BA6; Mon, 19 Apr 2004 17:49:31 +0200 (CEST) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "16 Apr 2004 20:49:44 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-ELTE-SpamVersion: MailScanner 4.26.8-itk2 (ELTE 1.1) SpamAssassin 2.63 ClamAV 0.65 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 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:21895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21895 David Kastrup writes: > Richard Stallman writes: > >> I like to have a menu-bar on a window system, but don't like it on >> a terminal. Maybe a display-local variable could do that. >>=20 >> It would be just as easy to do this job with frame-local variables >> (i.e. frame parameters), and they already exist. > > I don't see how. After all, we are not talking about the > _possibility_ of having a menu-bar or not (that's trivial), but about > the default for creation of new frames. And as far as I can tell, > you can't set different defaults for different displays. I think Richard is right; it seems to be easy to create an interface for setting different default frame parameters for different displays. For example, a variable like this would be trivial to implement: ,---- | ;; Enable the menu bar and the toolbar under X, but disable them on tty= frames. | (setq window-system-default-frame-alist | '((x (menu-bar-lines . 1) (tool-bar-lines . 1)) | (nil (menu-bar-lines . 0) (tool-bar-lines . 0)))) `---- In fact, I found that idea so useful that I have just implemented it :-) (see patch-150). Apart from the new variable definition, it was a one-line patch. What do you think? I am now convinced that display-local variables are not really necessary. What about making displays first-level Lisp objects? Are there any objections against that? --=20 K=E1roly