From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: installing emacs and X11 on OS X Date: Tue, 29 Oct 2002 07:55:47 +0200 (IST) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1035871357 17986 80.91.224.249 (29 Oct 2002 06:02:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 06:02:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186PSV-0004fy-00 for ; Tue, 29 Oct 2002 07:02:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186PMb-0008Kl-00; Tue, 29 Oct 2002 00:56:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186PLr-0008HH-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 00:55:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186PLo-0008FJ-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 00:55:42 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10) id 186PLn-0008F3-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 00:55:40 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id HAA21777 for ; Tue, 29 Oct 2002 07:55:47 +0200 (IST) X-Sender: eliz@is Original-To: help-gnu-emacs@gnu.org In-Reply-To: Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3028 On 28 Oct 2002, Thomas F. Burdick wrote: > > People will abuse less if they have less opportunities for abuse. > > I guess so long as a new facility for determining what environment > you're working in, is introduced, this is a fine decision. I imagine, > though, that any time you give people the ability to ask what > look-and-feel environment they're operating in, they'll abuse it to > test for display features. There's a difference. Abuse because there's no alternative means to do what you want is more likely and more justified than if the means to do it right do exist. > What's there is good, but more is needed. I guess that possiblity is > part of why window-system was depricated, instead of removed, huh? It wasn't removed simply because such abrupt changes are bad practice, they hurt back-compatibility too much. > I think what's needed is the ability to ask run-time questions like > the above. So either a look-and-feel-p predicate, or a series of > display-look&feel-*-p predicates, so I could write code like this: > > (when (display-look&feel-carbon-p) > (setup-carbon-look&feel)) Yes, this sounds to me like a good idea. Please suggest this on emacs-devel. > (when (display-look&feel-x11-p) > ;; Things like mouse-2 for paste > (setup-x11-look&feel)) > > (when (display-look&feel-mswin-p) > ;; No mouse-2 for pasting, use cua-mode instead > (setup-mswin-look&feel)) This is IMHO not such a good idea. If there's a need to know something about the functionality of mouse-2, or about the lack thereof, there should be a specific predicate for that. The very reason that you needed to put a comment explaining why X11 differs from MS-Windows is an evidence that the predicate is going to be a grabbag of indicators for support of several unrelated features, features that are not explicitly obvious from the predicate name. If we want to dostinguish between 2-button and 3-button Emacs, let's do that explicitly, let's not hide behind some look and feel.