emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.50; assert arguments warning


From: Richard Stallman
Subject: Re: 23.0.50; assert arguments warning
Date: Wed, 16 Jan 2008 03:31:34 -0500

       (eval-when-compile (require 'cl))
       (let ((end 1)(pos 2))
         (assert (<= pos end) t "p=%s e=%s" pos end))

    This gives a warning

       my-file.el:32:42:Warning: `error' called with 4 args to fill 2 format
         field(s)

That error seems correct.  You gave t for SHOW-ARGS, so it put
`pos' and `end' into the `error' call automatically.  Then you
added `pos' and `end' yourself.  That makes 4 format args,
but just two %s to display them.

I wonder if SHOW-ARGS is not properly documented.  Did you misunderstand
its meaning?




reply via email to

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