GNU bug report logs -
#11837
24.1.50; *Compile-Log* Error: Don't know how to compile nil
Previous Next
Reported by: Vladimir Lomov <lomov.vl <at> gmail.com>
Date: Mon, 2 Jul 2012 02:27:02 UTC
Severity: normal
Merged with 11842
Found in version 24.1.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11837 in the body.
You can then email your comments to 11837 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11837
; Package
emacs
.
(Mon, 02 Jul 2012 02:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vladimir Lomov <lomov.vl <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 02 Jul 2012 02:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I run into a problem with AUCTeX and recent Emacs.
I prepared small LaTeX document and run Emacs
emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path))' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
After start in window at bottom message is shown:
Error: Don't know how to compile nil
The name of window is `*Compile-Log*'.
I suspect that problem with `byte-compile' changed in rev. 108778 which
is used in `font-latex.el' file, part of AUCTeX package.
Sorry, I can't make more minimal example, so I don't know the actual
reason of the problem.
In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.3)
of 2012-07-02 on smoon4
Bzr revision: 108825 cyd <at> gnu.org-20120701110517-1w8auskac5c0mu1l
Windowing system distributor `The X.Org Foundation', version 11.0.11202000
Configured using:
`configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var'
'--libexecdir=/usr/lib' '--with-xpm' '--with-jpeg' '--with-tiff'
'--with-gif' '--with-png' '--with-rsvg' '--with-x-toolkit=gtk3'
'--with-xft' '--with-libotf' '--with-dbus' '--with-gsettings'
'--without-sound' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro''
Important settings:
value of $LC_COLLATE: C
value of $LANG: ru_RU.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: LaTeX/P
Minor modes in effect:
TeX-PDF-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p o r t - e a <backspace> m a c s - b u g
<return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Applying style hooks... done
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message idna byte-opt
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils tex-bar tex-buf toolbar-x
noutline outline font-latex warnings bytecomp byte-compile cconv
macroexp latex easy-mmode edmacro kmacro tex-style tex dbus xml advice
help-fns advice-preload easymenu latexenc tex-site auto-loads time-date
cyril-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11837
; Package
emacs
.
(Mon, 02 Jul 2012 14:18:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11837 <at> debbugs.gnu.org (full text, mbox):
> emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path))' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
> After start in window at bottom message is shown:
> Error: Don't know how to compile nil
Can you please try: emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path) debug-on-error t byte-compile-debug t)' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
and show us the resulting backtrace (assuming you get one)?
Stefan
Merged 11837 11842.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 02 Jul 2012 16:10:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11837
; Package
emacs
.
(Mon, 02 Jul 2012 23:16:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 11837 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier wrote:
> Can you please try: emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path) debug-on-error t byte-compile-debug t)' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
>
> and show us the resulting backtrace (assuming you get one)?
For me, the error comes from the stuff at the very end of font-latex.el:
http://cvs.savannah.gnu.org/viewvc/auctex/font-latex.el?root=auctex&view=markup
;;; Byte-compilation of generated functions
(when (byte-code-function-p
(symbol-function 'font-latex-make-built-in-keywords))
(dolist (elt font-latex-built-in-keyword-classes)
(let ((name (nth 0 elt)))
(byte-compile (intern (concat "font-latex-" name)))
(byte-compile (intern (concat "font-latex-" name "-make"))))))
->
Error: Don't know how to compile nil in font-latex-warning
Error: Don't know how to compile nil in font-latex-warning-make
etc
"font-latex-warning" etc is not defined.
font-latex-make-built-in-keywords actually defines things with a
"font-latex-match-" prefix, not "font-latex-".
In 24.1
(byte-compile nil)
silently does nothing
in trunk it complains:
Error: Don't know how to compile nil
So this looks like a long-standing font-latex bug that Emacs isn't
silent about any more.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11837
; Package
emacs
.
(Mon, 02 Jul 2012 23:27:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 11837 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
** Stefan Monnier [2012-07-02 10:12:34 -0400]:
>> emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path))' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
>> After start in window at bottom message is shown:
>> Error: Don't know how to compile nil
> Can you please try: emacs -Q --debug-init --eval '(setq load-path (cons "/usr/share/emacs/site-lisp" load-path) debug-on-error t byte-compile-debug t)' -l /usr/share/emacs/site-lisp/auctex.el ex.ltx
> and show us the resulting backtrace (assuming you get one)?
Yes, I got. I run above command, copied (`C-x r s r') to other buffer
(`C-x r i r') and saved as file `backtrace.txt'. I hope this is the
right way.
> Stefan
---------------------------- 8< ----------------------------
Debugger entered--Lisp error: (error "Don't know how to compile nil")
signal(error ("Don't know how to compile nil"))
error("Don't know how to compile %S" nil)
#[0 "\306 !\307\211\211\211\211\211\n\f
\3009\2037 \310\300!\2058 \300K\2028 \300\211\242\311=\211\203D A\262\3009\203` \242\312>\204U \313\314\"\210\315!\262@\316=\242\317=\204l \313\314\"\210\320!\262\242\321=\203\201 \211A@)\262\322!\262\211\203\217 \311B\262\3009\203\232 \300M\202\233 )\266\202.\f\207" [font-latex-warning byte-compile-initial-macro-environment byte-compile-verbose byte-optimize byte-compile-dynamic byte-compile-dynamic-docstrings copy-alist nil fboundp macro (closure lambda) error "Don't know how to compile %S" byte-compile--refiy-function closure lambda byte-compile-preprocess function byte-compile-lambda byte-compile-warnings byte-compile-free-assignments byte-compile-free-references byte-compile-const-variables byte-compile-bound-variables byte-compile-function-environment byte-compile--outbuffer byte-compile-macro-environment lexical-binding x] 13 "\n\n(fn)"]()
byte-compile(font-latex-warning)
byte-code("\305\306\307\"\210\310=\203 \307 \210\311\312K!\203= \313\211\203<