From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: C-u prefix behavior of TAB broken Date: Mon, 25 Feb 2008 04:26:58 +0900 Message-ID: <877igucfzx.fsf@catnip.gol.com> References: <874peijnu4.fsf@catnip.gol.com> <47667010.40209@gmx.at> <87tzmhs8g8.fsf@catnip.gol.com> <4766C7F7.5060504@gmx.at> <87fxxvbnbv.fsf@catnip.gol.com> <476CD8CF.4060108@gmx.at> <874peac02g.fsf@catnip.gol.com> <476D4C5D.7020202@gmx.at> <87bq8ia4mp.fsf@catnip.gol.com> <476D9138.2070808@gmx.at> <87mys272v7.fsf@catnip.gol.com> <8763we18xf.fsf@jurta.org> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203881247 30501 80.91.229.12 (24 Feb 2008 19:27:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 19:27:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 20:27:52 2008 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 1JTMVq-0004MJ-Ah for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 20:27:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMVK-0001Ad-8l for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 14:27:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTMVD-00018F-Pu for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:27:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTMV9-00013p-84 for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:27:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMV8-00013c-N3 for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:27:06 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTMV4-0002NW-V2; Sun, 24 Feb 2008 14:27:03 -0500 Original-Received: from 203-216-97-013.dsl.gol.ne.jp ([203.216.97.13] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JTMV2-00043f-7K; Mon, 25 Feb 2008 04:27:00 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 098D52FF8; Mon, 25 Feb 2008 04:26:58 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <8763we18xf.fsf@jurta.org> (Juri Linkov's message of "Sun, 24 Feb 2008 21:05:09 +0200") Original-Lines: 22 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: 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:90262 Archived-At: Juri Linkov writes: > I have bound a key to the command that calls `indent-for-tab-command' > with a prefix argument, and when I accidently type it a close parenthesis, > it fails with the error "Containing expression ends prematurely". That sounds correct to me... > I think it would be better not to fail at such places, and just indent > the current line without indenting the following sexp. Wouldn't it be a bit more elegant for you to change your command to do something like: (condition-case err (indent-for-tab-command t) (error (indent-for-tab-command))) ? -Miles -- Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.