bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11821: 24.1.50; Slime doesn't batch compile anymore


From: Thierry Volpiatto
Subject: bug#11821: 24.1.50; Slime doesn't batch compile anymore
Date: Thu, 05 Jul 2012 13:07:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> slime-repl.el:19:13:Error: Don't know how to compile nil
>> slime-repl.el:19:13:Error: Don't know how to compile nil
>
> Apparently, some of the code in slime-repl.el ends up calling
> (byte-compile <functionname>) where <functionname> is a function that's
> not yet defined.
Indeed modifying all files containing such a form like this works:

--- a/contrib/slime-repl.el
+++ b/contrib/slime-repl.el
@@ -1725,12 +1725,12 @@ If the current buffer is not a REPL, don't do anything."
   (remove-hook 'slime-cycle-connections-hook 
'slime-change-repl-to-default-connection))
 
 (let ((byte-compile-warnings '()))
-  (mapc #'byte-compile
-       '(slime-repl-event-hook-function
-         slime-write-string
-         slime-repl-write-string
-         slime-repl-emit
-         slime-repl-show-maximum-output)))
+  (loop for obj in '(slime-repl-event-hook-function
+                     slime-write-string
+                     slime-repl-write-string
+                     slime-repl-emit
+                     slime-repl-show-maximum-output)
+        when (and obj (boundp obj)) do (byte-compile obj)))





> Earlier, Emacs would just silently ignore such erroneous situations,
>
>
>         Stefan
>
>
>
>

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]