unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Invalid compiler option #:warnings for elisp
@ 2010-08-11 15:19 Julien Danjou
  2010-08-13  0:26 ` Brian Templeton
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Danjou @ 2010-08-11 15:19 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

Hi all,

I've tried to use guile with elisp language. However, I've the following
warning:

GNU Guile 1.9.11.255-802b
scheme@(guile-user)> ,L elisp
Happy hacking with Emacs Lisp!  To switch back, type `,L scheme'.
elisp@(guile-user)> 1
While compiling expression:
ERROR: Invalid compiler option #:warnings

The following change fix the problem:

--- a/module/system/repl/common.scm
+++ b/module/system/repl/common.scm
@@ -106,7 +106,7 @@ See <http://www.gnu.org/licenses/lgpl.html>, for more details.")
 
 (define repl-default-options
   (copy-tree
-   `((compile-options (#:warnings (unbound-variable arity-mismatch)) #f)
+   `((compile-options () #f)
      (trace #f #f)
      (interp #f #f)
      (prompt #f ,(lambda (prompt)

But I'm pretty sure that's not the good fix. :-)

Cheers,
-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Invalid compiler option #:warnings for elisp
  2010-08-11 15:19 Invalid compiler option #:warnings for elisp Julien Danjou
@ 2010-08-13  0:26 ` Brian Templeton
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Templeton @ 2010-08-13  0:26 UTC (permalink / raw)
  To: guile-devel

Julien Danjou <julien@danjou.info> writes:

> Hi all,
>
> I've tried to use guile with elisp language. However, I've the following
> warning:
>
> GNU Guile 1.9.11.255-802b
> scheme@(guile-user)> ,L elisp
> Happy hacking with Emacs Lisp!  To switch back, type `,L scheme'.
> elisp@(guile-user)> 1
> While compiling expression:
> ERROR: Invalid compiler option #:warnings
>
> The following change fix the problem:
>
> --- a/module/system/repl/common.scm
> +++ b/module/system/repl/common.scm
> @@ -106,7 +106,7 @@ See <http://www.gnu.org/licenses/lgpl.html>, for more details.")
>  
>  (define repl-default-options
>    (copy-tree
> -   `((compile-options (#:warnings (unbound-variable arity-mismatch)) #f)
> +   `((compile-options () #f)
>       (trace #f #f)
>       (interp #f #f)
>       (prompt #f ,(lambda (prompt)
>
> But I'm pretty sure that's not the good fix. :-)

The Elisp compiler doesn't currently implement any warnings, so
`process-options!' (in "module/elisp/compile-tree-il.scm") can simply
ignore the option. See commit 3faabe5 in my Guile Elisp repository:
<git://git.hcoop.net/git/bpt/guile.git>

-- 
Inteligenta persono lernas la lingvon Esperanton rapide kaj facile.
Esperanto estas moderna, kultura lingvo por la mondo. Simpla, fleksebla,
belsona, Esperanto estas la praktika solvo de la problemo de universala
interkompreno. Lernu la interlingvon Esperanton! http://lernu.net/




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-13  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11 15:19 Invalid compiler option #:warnings for elisp Julien Danjou
2010-08-13  0:26 ` Brian Templeton

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 read-only IMAP folder(s) and NNTP newsgroup(s).