From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76672 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: tzz-auth-source-rewrite branch Date: Sun, 13 Feb 2011 19:28:42 -0800 Organization: Programmerer Ingebrigtsen Message-ID: <877hd3fg5x.fsf@gnus.org> References: <87ei7nivte.fsf@lifelogs.com> <87zkq9tdi7.fsf_-_@lifelogs.com> <87mxm9ytyn.fsf@gnus.org> <87lj1rvafs.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297654528 16604 80.91.229.12 (14 Feb 2011 03:35:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 03:35:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25015@lists.math.uh.edu Mon Feb 14 04:35:19 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PopDZ-0001bD-G6 for ding-account@gmane.org; Mon, 14 Feb 2011 04:35:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PopDV-0005vp-FH; Sun, 13 Feb 2011 21:35:13 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PopDT-0005vU-Ra for ding@lists.math.uh.edu; Sun, 13 Feb 2011 21:35:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PopDP-00019a-I0 for ding@lists.math.uh.edu; Sun, 13 Feb 2011 21:35:11 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PopDO-0000eP-RL for ding@gnus.org; Mon, 14 Feb 2011 04:35:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PopDN-0001Xk-7Q for ding@gnus.org; Mon, 14 Feb 2011 04:35:05 +0100 Original-Received: from baybryj.net ([198.144.208.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Feb 2011 04:35:05 +0100 Original-Received: from larsi by baybryj.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Feb 2011 04:35:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: baybryj.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:trL8uUbWAzWm7P5XViZVzMdUmRg= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76672 Archived-At: Ted Zlatanov 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