From: "Drew Adams" <drew.adams@oracle.com>
To: <11847@debbugs.gnu.org>
Subject: bug#11847: 24.1.50; Error: Don't know how to compile #[nil "..."]
Date: Mon, 2 Jul 2012 23:12:57 -0700 [thread overview]
Message-ID: <29D5C99F577340CEBD4E81E72735627A@us.oracle.com> (raw)
In-Reply-To: <BAC98111817A44ECA7EF8084B03B28C1@us.oracle.com>
> My startup sequence loads some libraries, but it does not try
> to compile anything.
I take back that last part. I do this kind of thing - but it is nothing new
(has always worked before):
(defcustom icicle-byte-compile-eval-after-load-flag t
"*Non-nil means byte-compile definitions made within `eval-after-load'.
Some Icicles functions (commands, in particular) work only if a given
library is loaded. Some such functions are defined inside an
`eval-after-load' form, which means they are defined only, and as soon
as, the required library is loaded.
If this option is non-nil then those function definitions are
byte-compiled. This compilation adds a bit to the load time, in
effect, but it means that the functions run faster."
:type 'boolean :group 'Icicles-Miscellaneous)
(defmacro icicle-maybe-byte-compile-after-load (function)
"Byte-compile FUNCTION if `icicle-byte-compile-eval-after-load-flag'.
Do nothing if FUNCTION has not been defined (`fboundp')."
`(when (and icicle-byte-compile-eval-after-load-flag (fboundp ',function))
(require 'bytecomp)
(let ((byte-compile-warnings ())
(byte-compile-verbose nil))
(byte-compile ',function))))
(defun icicle-cmd2-after-load-bookmark+ ()
"Things to do for `icicles-cmd2.el' after loading `bookmark+.el'."
(icicle-define-file-command icicle-bookmark-a-file ...)
(icicle-maybe-byte-compile-after-load icicle-bookmark-a-file)
... ;; Etc. - more defs followed by maybe byte-compiling them.
)
(eval-after-load "bookmark+" '(icicle-cmd2-after-load-bookmark+))
Where is the problem? Why does Emacs now raise a runtime error?
next prev parent reply other threads:[~2012-07-03 6:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 3:28 bug#11847: 24.1.50; Error: Don't know how to compile #[nil "..."] Drew Adams
2012-07-03 6:12 ` Drew Adams [this message]
2012-07-03 6:21 ` Drew Adams
2012-07-03 13:42 ` Stefan Monnier
2012-07-03 14:44 ` Drew Adams
2012-07-03 17:26 ` Stefan Monnier
2012-07-03 18:00 ` Drew Adams
2012-07-05 15:49 ` Drew Adams
2012-07-05 16:14 ` Stefan Monnier
2012-07-05 16:20 ` Drew Adams
2012-07-17 5:56 ` Drew Adams
2012-07-17 5:50 ` Drew Adams
2012-07-17 6:37 ` Stefan Monnier
2012-07-17 6:40 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29D5C99F577340CEBD4E81E72735627A@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=11847@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).