[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-u prefix behavior of TAB broken
From: |
Juri Linkov |
Subject: |
Re: C-u prefix behavior of TAB broken |
Date: |
Sun, 24 Feb 2008 21:40:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-amd64-linux-gnu) |
>> 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/