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: Bikeshedding go! Why is unbound? Date: Mon, 17 Jan 2011 15:17:38 -0800 Message-ID: <34509A44D5C34DEE8812226B2CB83C93@us.oracle.com> References: <315B881CD79A43A9BABD5145EF4BFFE6@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295306278 23000 80.91.229.12 (17 Jan 2011 23:17:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 23:17:58 +0000 (UTC) Cc: monnier@iro.umontreal.ca, pj@irregularexpressions.net, emacs-devel@gnu.org To: "'Lennart Borgman'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 18 00:17:52 2011 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.69) (envelope-from ) id 1PeyKd-0000l2-2i for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2011 00:17:51 +0100 Original-Received: from localhost ([127.0.0.1]:36843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeyKb-0002C5-KN for ged-emacs-devel@m.gmane.org; Mon, 17 Jan 2011 18:17:49 -0500 Original-Received: from [140.186.70.92] (port=35305 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeyKW-0002Az-Fu for emacs-devel@gnu.org; Mon, 17 Jan 2011 18:17:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeyKV-0004Qz-3V for emacs-devel@gnu.org; Mon, 17 Jan 2011 18:17:44 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:45288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeyKU-0004Qn-TH for emacs-devel@gnu.org; Mon, 17 Jan 2011 18:17:43 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p0HNHcKT023560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jan 2011 23:17:40 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p0HJgw3q005423; Mon, 17 Jan 2011 23:17:38 GMT Original-Received: from abhmt007.oracle.com by acsmt354.oracle.com with ESMTP id 932285451295306257; Mon, 17 Jan 2011 15:17:37 -0800 Original-Received: from dradamslap1 (/10.159.220.70) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Jan 2011 15:17:36 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: Acu2lSzo8CK30UG1Q4GdVjjUp+L0NgABgLOw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:134673 Archived-At: > > Any Lisp code today can decide to capture the unbound error using > > `condition-case', as mentioned earlier. =A0You can determine=20 > > at the Lisp level what happens when an unbound error is raised. >=20 > But this can't be done when entering a command (in Emacs command > loop). Or am I missing something? Irrelevant. I said in Lisp. You answer "Not in bananas". > And in the cases where you are not entering a key sequences in the > command loop you can test if the given key sequence is unbound. I already said this, but here goes again: Testing whether a key is unbound is not the same thing as testing = whether an unbound error is raised. The latter does tell you whether a key is = unbound, but it also tells you that a key was invoked and an error was raised because = it is not bound.