From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: how to use graphic-display-p and window-system Date: Fri, 17 Apr 2009 17:19:51 -0700 Message-ID: <001201c9bfbb$65707c30$0200a8c0@us.oracle.com> References: <834owro4ha.fsf@gnu.org><001a01c9bf83$38bd2270$0200a8c0@us.oracle.com><83d4bbjgeg.fsf@gnu.org><000001c9bf99$47732600$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240014014 5867 80.91.229.12 (18 Apr 2009 00:20:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2009 00:20:14 +0000 (UTC) Cc: 'Eli Zaretskii' , emacs-devel@gnu.org To: "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 02:21:33 2009 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 1LuyJI-0006WN-HQ for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2009 02:21:32 +0200 Original-Received: from localhost ([127.0.0.1]:47572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuyHt-000549-EA for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2009 20:20:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuyHm-00052J-KS for emacs-devel@gnu.org; Fri, 17 Apr 2009 20:19:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuyHi-0004u7-UT for emacs-devel@gnu.org; Fri, 17 Apr 2009 20:19:58 -0400 Original-Received: from [199.232.76.173] (port=42065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuyHi-0004tt-LW for emacs-devel@gnu.org; Fri, 17 Apr 2009 20:19:54 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:62595) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuyHf-0005lr-Vh; Fri, 17 Apr 2009 20:19:52 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3I0JFjH027396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 18 Apr 2009 00:19:16 GMT Original-Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3I0O7wG011868; Sat, 18 Apr 2009 00:24:08 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 17 Apr 2009 17:19:45 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acm/t9Yty9gNlPYRQE+AQQkgtm2cOwAAgJiA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010209.49E91CA5.01A3:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:110333 Archived-At: > The general solution is to not try to answer the question: > instead, make > sure you provide a "guaranteed" binding (i.e. a binding that only uses > keys that are known to work pretty much everywhere), And those are? And that is described where? > and once that's done you may also provide another binding > using a less standard key. That's exactly what I'm doing. But I want to make that basic binding the default, when the context is unlikely to not support the fancier keys. That's why I'm looking for a general, heuristic test - likeliness, not certainty. I'm not looking for something that is always "correct", but for a test that lets me choose a reasonable default. Users can of course use whatever keys they want, but a default binding that is reasonable most of the time can be helpful. > > 1. General colors vs no colors or limited set of colors (e.g. 256). > > `display-color-cells'. > > > 2. General keys vs no modifiers for keys such as TAB, insert, and > > prior. This means also distinguishing between, say, C-l > > and C-S-l. > > Fundamentally impossible. Are you talking about the first sentence, the second, or both? For the first, as far as I can see, Emacs source code does this in various places, and it seems to use `window-system' to do it. No doubt that is not 100% accurate, but I don't need such accuracy either. For the second, it's certainly not impossible to bind different commands to C-l and C-S-l, if that's what you meant.