opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 16 June 2005 • 10:07PM -0400

Re: (error (format ...
by David Kastrup

REPLY TO AUTHOR
 
REPLY TO GROUP




Juanma Barranquero <lekktu@gmai...> 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


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu....
http://lists.gnu.org/mailman/listinfo/emacs-devel

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.