GNU bug report logs - #6262
Please learn the compiler that defface needs a doc string

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Mon, 24 May 2010 19:49:02 UTC

Severity: normal

Tags: fixed

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: Juanma Barranquero <lekktu <at> gmail.com>, 6262 <at> debbugs.gnu.org
Subject: bug#6262: Please learn the compiler that defface needs a doc  string
Date: Wed, 26 May 2010 14:27:58 -0400
Lennart Borgman wrote (on Wed, 26 May 2010 at 20:09 +0200):

> Try to compile this
> 
> (defface my-face
>   '((t (:foreground "black" :background "OrangeRed")))
>   :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.

It is akin to asking for the compiler to warn about this:

(load 'not-a-string)

Pay attention to the compilation warning you do get, which indicates
there is a problem.




This bug report was last modified 13 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.