Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: tzz-auth-source-rewrite branch
Date: Sun, 13 Feb 2011 19:28:42 -0800	[thread overview]
Message-ID: <877hd3fg5x.fsf@gnus.org> (raw)
In-Reply-To: <87lj1rvafs.fsf@lifelogs.com>

Ted Zlatanov <tzz@lifelogs.com> writes:

> In auth-source-search:
> auth-source.el:507:33:Warning: `error' called with 2 args to fill 0 format
>     field(s)
>
> In auth-source-netrc-search:
> auth-source.el:712:32:Warning: `error' called with 2 args to fill 0 format
>     field(s)
>
> but am not sure why.

The cl macros are virtually unreadable since they use such weird
old-stylee forms, but I think this is the gist of the assert macro:

(list 'progn
      (list 'or form
            (if string
                (list* 'error string (append sargs args)))))

Rewritten to modern macrology, that would be something like:
                
`(progn
   (or ,form
        (if ,string
            (error string ,sargs ,args))))

And we see that, indeed, `error' is called with two parameters.  I've
now just stuck to %s forms into the strings, and that seems to make the
warning go away, as you'd expect.

Aidan Kehoe has been rewriting cl*.el in XEmacs, and I think somebody
should import all that stuff into Emacs, so you'd actually be able to
read the code.
            
-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  parent reply	other threads:[~2011-02-14  3:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1PlOrx-0002M3-00@quimby.gnus.org>
2011-02-04 16:55 ` [gnus git] branch tzz-auth-source-rewrite created: =0= Ted Zlatanov
2011-02-06 14:59   ` tzz-auth-source-rewrite branch (was: [gnus git] branch tzz-auth-source-rewrite created: =0=) Ted Zlatanov
2011-02-06 17:05     ` tzz-auth-source-rewrite branch Lars Ingebrigtsen
2011-02-07 20:47       ` Ted Zlatanov
2011-02-08 22:28         ` Ted Zlatanov
2011-02-09 21:36           ` Ted Zlatanov
2011-02-14  3:28             ` Lars Ingebrigtsen
2011-02-14  3:28         ` Lars Ingebrigtsen [this message]
2011-02-14 15:03           ` Ted Zlatanov
2011-02-14 17:58           ` Andreas Schwab
2011-02-06 18:38     ` Michael Albinus
2011-02-06 19:33       ` Ted Zlatanov
2011-02-06 20:36         ` Michael Albinus
2011-02-07 18:14           ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hd3fg5x.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).