emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-u prefix behavior of TAB broken


From: Miles Bader
Subject: Re: C-u prefix behavior of TAB broken
Date: Mon, 25 Feb 2008 04:26:58 +0900

Juri Linkov <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]