From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6262: Please learn the compiler that defface needs a doc string Date: Wed, 26 May 2010 20:49:40 +0200 Message-ID: References: <19452.50587.701065.851521@fencepost.gnu.org> <19453.26670.986944.928676@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274907107 3945 80.91.229.12 (26 May 2010 20:51:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 May 2010 20:51:47 +0000 (UTC) Cc: Juanma Barranquero , 6262@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 26 22:51:45 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHNZn-0008I8-KE for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 May 2010 22:51:44 +0200 Original-Received: from localhost ([127.0.0.1]:42133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHNZm-00064b-N5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 May 2010 16:51:42 -0400 Original-Received: from [140.186.70.92] (port=32927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHLsP-0000S5-0d for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 15:02:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHLn7-0007lr-Oq for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 14:57:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45757) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHLn7-0007lh-NT for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 14:57:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OHLgz-0002Uk-SA; Wed, 26 May 2010 14:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 May 2010 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6262 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 6262-submit@debbugs.gnu.org id=B6262.12748998159574 (code B ref 6262); Wed, 26 May 2010 18:51:01 +0000 Original-Received: (at 6262) by debbugs.gnu.org; 26 May 2010 18:50:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHLgE-0002UN-4D for submit@debbugs.gnu.org; Wed, 26 May 2010 14:50:14 -0400 Original-Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHLgB-0002UD-Va for 6262@debbugs.gnu.org; Wed, 26 May 2010 14:50:12 -0400 Original-Received: by gwj15 with SMTP id 15so2302886gwj.3 for <6262@debbugs.gnu.org>; Wed, 26 May 2010 11:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=evTpnlnounJ3f6S6cPXsP+PwAymw1l0Adml7zgkMWFI=; b=x2/8XCqMbeRFqA5O0Ga/f0DclJ9jFo6TLYC+HT4gNn/AS+oBMmgRVSkEY/GZ0SDaOH K8DWE4gziU/QKKtdkUstg/nNnVTULakejSRj9fdmYIfaF76k1Un8VXjJL0H/fvBc55c7 73cZkl1QxiS92z/KT4hIRnqB6Ntv84QyPmxyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=fzxpa2YHXGX8AU99rjinrR59BtkaAq7Ok93PSED0LxHV+Q3z7pnoyAghb8aTfR2oly uo67BVs212CthtDlIl8l2HKEW37631Un9O2NjHcrsXAo8H3BlZyPRWhrmMloskAmZKFf M2Xhk4v3pWsq3tx0N722jQkkwylRVNNjv1Q8Y= Original-Received: by 10.101.211.14 with SMTP id n14mr11233594anq.152.1274899803029; Wed, 26 May 2010 11:50:03 -0700 (PDT) Original-Received: by 10.100.177.20 with HTTP; Wed, 26 May 2010 11:49:40 -0700 (PDT) In-Reply-To: <19453.26670.986944.928676@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 26 May 2010 14:51:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37309 Archived-At: On Wed, May 26, 2010 at 8:27 PM, Glenn Morris wrote: > > Lennart Borgman wrote (on Wed, 26 May 2010 at 20:09 +0200): > >> Try to compile this >> >> (defface my-face >> =C2=A0 '((t (:foreground "black" :background "OrangeRed"))) >> =C2=A0 :group 'web-vcs) > > Please, try to start at this point next time. > >> You get a warning (I misremembered), but no error. However you get an >> error when you try to load it. >> >> If you just eval the definition you get no warning. > > You are asking for argument type checking. If you do eval-buffer with the above declaration in the buffer you get a call to custom-declare-face. A check there would be good. defcustom has such a check. define-minor-mode lacks it just as defface. > It is akin to asking for the compiler to warn about this: > > (load 'not-a-string) I guess you mean that the macros are just expanded during compilation and no call to the result is done until loading of the file. If that is what you mean then my suggestion above should work fine. Otherwise could you please explain what you mean? > Pay attention to the compilation warning you do get, which indicates > there is a problem. There is an error. Is there any reason the compile can't say that in this c= ase?