[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (error (format ...
From: |
David Kastrup |
Subject: |
Re: (error (format ... |
Date: |
Thu, 16 Jun 2005 16:07:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Juanma Barranquero <address@hidden> writes:
>> I'd probably be tempted to use
>>
>> (error (concat "No further undo information"
>> (and transient-mark-mode mark-active
>> " for region")))
>
> Yes, in this case I think yours is better. But if the argument is a variable:
>
> (lambda (arg) (error (format "This is the error: %s" arg)))
>
> would be preferable to
>
> (lambda (arg) (error "This is the error: %s" arg))
>
> ?
Not at all. The former is prone to bug out when "arg" contains "%"
somewhere. The latter works fine in this case.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum