From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: C-u prefix behavior of TAB broken Date: Sun, 24 Feb 2008 21:40:41 +0200 Organization: JURTA Message-ID: <87ejb2rvlx.fsf@jurta.org> 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> <877igucfzx.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203882400 2202 80.91.229.12 (24 Feb 2008 19:46:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 19:46:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 20:47:05 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 1JTMoQ-0002Bu-2p for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 20:47:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMnu-0003Bp-Di for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 14:46:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTMma-0002Gz-Hk for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:45:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTMmY-0002Fm-Od for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:45:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMmY-0002FZ-Cv for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:45:06 -0500 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTMmU-0006cG-Ms; Sun, 24 Feb 2008 14:45:03 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JTMmR-000Nej-50; Sun, 24 Feb 2008 21:44:59 +0200 In-Reply-To: <877igucfzx.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 25 Feb 2008 04:26:58 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-amd64-linux-gnu) X-Scanner-Signature: 8abf2c83e696415c40c55866f9369f42 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2309 [Feb 24 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (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:90266 Archived-At: >> 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... This is correct, but I thought this is not very useful. >> 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))) This is not a problem for me, but I doubted that displaying an error message would be useful for someone who types `C-u TAB' at the wrong place. -- Juri Linkov http://www.jurta.org/emacs/