unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
Subject: Re: installing emacs and X11 on OS X
Date: Tue, 29 Oct 2002 07:55:47 +0200 (IST)	[thread overview]
Message-ID: <Pine.SUN.3.91.1021029074627.21619B@is> (raw)
In-Reply-To: <xcvpttuqmrc.fsf@mudslide.OCF.Berkeley.EDU>


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.

  reply	other threads:[~2002-10-29  5:55 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1035784882.23705.help-gnu-emacs@gnu.org>
2002-10-28 12:45 ` installing emacs and X11 on OS X Hugo Wolf
2002-10-28 18:18   ` Eli Zaretskii
     [not found]   ` <mailman.1035832709.18867.help-gnu-emacs@gnu.org>
2002-10-28 20:15     ` Schone Mullerin
2002-10-29  5:45       ` Eli Zaretskii
2002-10-28 21:25 ` Thomas F. Burdick
2002-10-29  5:55   ` Eli Zaretskii [this message]
2002-10-29 15:41 ` Stefan Monnier <foo@acm.com>
2002-10-29 19:48   ` Eli Zaretskii
     [not found]   ` <mailman.1035924479.14908.help-gnu-emacs@gnu.org>
2002-10-29 20:57     ` Stefan Monnier <foo@acm.com>
     [not found] <mailman.1035870384.15595.help-gnu-emacs@gnu.org>
2002-10-29 13:42 ` Hugo Wolf
2002-10-29 17:14   ` Kevin Rodgers
2002-10-29 19:45   ` Eli Zaretskii
     [not found]   ` <mailman.1035924328.7472.help-gnu-emacs@gnu.org>
2002-10-29 21:17     ` Schone Mullerin
     [not found] <mailman.1035438509.9019.help-gnu-emacs@gnu.org>
2002-10-24  6:59 ` John Paul Wallington
     [not found] <mailman.1035334713.26558.help-gnu-emacs@gnu.org>
2002-10-23  8:54 ` Joseph Kiniry
2002-10-23 12:04 ` Michael Hudson
2002-10-23 12:14 ` Piet van Oostrum
2002-10-23 13:01   ` Hugo Wolf
2002-10-23 14:08     ` John Paul Wallington
2002-10-24  5:47       ` Eli Zaretskii
2002-10-24 12:43       ` Hugo Wolf
2002-10-24 17:27         ` Eli Zaretskii
     [not found]         ` <mailman.1035484120.27029.help-gnu-emacs@gnu.org>
2002-10-24 20:01           ` Schone Mullerin
2002-10-26  7:17             ` Eli Zaretskii
     [not found]             ` <mailman.1035620182.18482.help-gnu-emacs@gnu.org>
2002-10-26 14:39               ` Hugo Wolf
2002-10-26 14:13                 ` Eli Zaretskii
     [not found]                 ` <mailman.1035645140.22359.help-gnu-emacs@gnu.org>
2002-10-26 21:41                   ` Hugo Wolf
2002-10-26 21:43                     ` Eli Zaretskii
     [not found]                     ` <mailman.1035672257.29530.help-gnu-emacs@gnu.org>
2002-10-27 15:07                       ` Hugo Wolf
2002-10-27 15:53                         ` Eli Zaretskii
2002-10-27 16:14                         ` Piet van Oostrum
2002-10-27 19:47                           ` Hugo Wolf
2002-10-27 19:13                         ` Thomas F. Burdick
2002-10-27 19:53                           ` Hugo Wolf
2002-10-28  6:00                           ` Eli Zaretskii
     [not found]                         ` <mailman.1035737630.1161.help-gnu-emacs@gnu.org>
2002-10-27 20:08                           ` Hugo Wolf
2002-10-27 20:33                         ` Chris Lott
2002-10-23 12:53 ` Hugo Wolf
2002-10-23  0:53 Hugues Joly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.91.1021029074627.21619B@is \
    --to=eliz@is.elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).