help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: if and only if an Error message


From: Michael Heerdegen
Subject: Re: if and only if an Error message
Date: Mon, 21 Jul 2014 10:51:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Emanuel Berg <address@hidden> writes:

> > Maybe also call `discard-input' as
> > `command-error-default-function' does.
>
> Well, yes, I removed that part from your suggestion
> (not `discard-input' but the whole part with
> `command-error-default-function') because I don't have
> that, neither as a function or a variable. Do you have
> it? What is it?

A function.  I didn't check -- it doesn't exist in the current release,
but will be in the next one.

Until then, I suggest you call `discard-input'.


> > And (message "%s" error-str).
> >              ^^^^
>
> Isn't it already a string from this?

That's not the point.  The first arg of `message' is treated as a
"format control string".  If there's a "%" char in `error-str', you'll
get an error with your version.




reply via email to

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