* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
@ 2012-07-02 2:21 Vladimir Lomov
2012-07-02 14:12 ` Stefan Monnier
0 siblings, 1 reply; 8+ messages in thread
From: Vladimir Lomov @ 2012-07-02 2:21 UTC (permalink / raw)
To: 11837
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@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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-02 2:21 bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil Vladimir Lomov
@ 2012-07-02 14:12 ` Stefan Monnier
2012-07-02 23:10 ` Glenn Morris
2012-07-02 23:21 ` Vladimir Lomov
0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2012-07-02 14:12 UTC (permalink / raw)
To: Vladimir Lomov; +Cc: 11837
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-02 14:12 ` Stefan Monnier
@ 2012-07-02 23:10 ` Glenn Morris
2012-07-03 19:20 ` Tassilo Horn
2012-07-02 23:21 ` Vladimir Lomov
1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-07-02 23:10 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Vladimir Lomov, 11837
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-02 14:12 ` Stefan Monnier
2012-07-02 23:10 ` Glenn Morris
@ 2012-07-02 23:21 ` Vladimir Lomov
1 sibling, 0 replies; 8+ messages in thread
From: Vladimir Lomov @ 2012-07-02 23:21 UTC (permalink / raw)
To: 11837
[-- Attachment #1: Type: text/plain, Size: 3235 bytes --]
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\v\f\r\x0e\x13\x1e\x13\x1d\x1c^[\x1a\x1e\x14\x1e\x15\x1e\x16\x1e\x17\x1e\x18\x1e\x19\x1e\x1a\x0e^[\x1e^[\3009\2037\0\310\300!\2058\0\300K\2028\0\300\211\242\311=\211\203D\0\x01A\262\x02\3009\203`\0\x01\242\312>\204U\0\313\314\x03\"\210\315\x02!\262\x02\x01@\316=\x16^[\x01\242\317=\204l\0\313\314\x03\"\210\320\x02!\262\x02\x01\242\321=\203\201\0\x01\211\x1e\x1cA@)\262\x02\322\x02!\262\x02\211\203\217\0\311\x02B\262\x02\3009\203\232\0\300\x02M\202\233\0\x01)\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\b\310=\203\x0e\0\307 \210\311\312K!\203=\0 \313\x1a\211^[\203<\0\v@\211\x12@\x1c\314\315\316\fP!!\210\314\315\316\f\317Q!!\210)\vA\211\x13\204\x1d\0*\320\321!\207" [major-mode font-latex-built-in-keyword-classes elt --dolist-tail-- name add-hook latex-mode-hook font-latex-setup latex-mode byte-code-function-p font-latex-make-built-in-keywords nil byte-compile intern "font-latex-" "-make" provide font-latex] 6)
font-latex-setup()
VirTeX-common-initialization()
LaTeX-common-initialization()
latex-mode()
set-auto-mode-0(latex-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer ex.ltx> "~/tmp/ex.ltx" nil nil "~/tmp/ex.ltx" (12328882 2051))
find-file-noselect("/home/vladimir/tmp/ex.ltx" nil nil nil)
find-file("/home/vladimir/tmp/ex.ltx")
command-line-1(("--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"))
command-line()
normal-top-level()
---------------------------- 8< ----------------------------
--
No discipline is ever requisite to force attendance upon lectures which are
really worth the attending.
-- Adam Smith, "The Wealth of Nations"
[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 2209 bytes --]
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\v\f\r\x0e\x13\x1e\x13\x1d\x1c^[\x1a\x1e\x14\x1e\x15\x1e\x16\x1e\x17\x1e\x18\x1e\x19\x1e\x1a\x0e^[\x1e^[\3009\2037\0\310\300!\2058\0\300K\2028\0\300\211\242\311=\211\203D\0\x01A\262\x02\3009\203`\0\x01\242\312>\204U\0\313\314\x03\"\210\315\x02!\262\x02\x01@\316=\x16^[\x01\242\317=\204l\0\313\314\x03\"\210\320\x02!\262\x02\x01\242\321=\203\201\0\x01\211\x1e\x1cA@)\262\x02\322\x02!\262\x02\211\203\217\0\311\x02B\262\x02\3009\203\232\0\300\x02M\202\233\0\x01)\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\b\310=\203\x0e\0\307 \210\311\312K!\203=\0 \313\x1a\211^[\203<\0\v@\211\x12@\x1c\314\315\316\fP!!\210\314\315\316\f\317Q!!\210)\vA\211\x13\204\x1d\0*\320\321!\207" [major-mode font-latex-built-in-keyword-classes elt --dolist-tail-- name add-hook latex-mode-hook font-latex-setup latex-mode byte-code-function-p font-latex-make-built-in-keywords nil byte-compile intern "font-latex-" "-make" provide font-latex] 6)
font-latex-setup()
VirTeX-common-initialization()
LaTeX-common-initialization()
latex-mode()
set-auto-mode-0(latex-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer ex.ltx> "~/tmp/ex.ltx" nil nil "~/tmp/ex.ltx" (12328882 2051))
find-file-noselect("/home/vladimir/tmp/ex.ltx" nil nil nil)
find-file("/home/vladimir/tmp/ex.ltx")
command-line-1(("--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"))
command-line()
normal-top-level()
[-- Attachment #3: ex.ltx --]
[-- Type: text/x-tex, Size: 258 bytes --]
% !TEX program = pdflatex
% !TEX encoding = UTF-8
\documentclass{article}
\begin{document}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% fill-column: 96
%%% TeX-master: t
%%% TeX-PDF-mode: t
%%% End:
%%% vim: syn=tex ft=tex tw=96 ts=2 sw=2 et:
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-02 23:10 ` Glenn Morris
@ 2012-07-03 19:20 ` Tassilo Horn
2012-07-03 22:24 ` Glenn Morris
2012-07-05 18:35 ` Glenn Morris
0 siblings, 2 replies; 8+ messages in thread
From: Tassilo Horn @ 2012-07-03 19:20 UTC (permalink / raw)
To: Glenn Morris; +Cc: Vladimir Lomov, 11837
Glenn Morris <rgm@gnu.org> writes:
Hi Glenn,
> ->
> 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-".
>
> So this looks like a long-standing font-latex bug that Emacs isn't
> silent about any more.
Good catch. I've fixed that in AUCTeX CVS. I think, it's time for a
new AUCTeX release. 11.86 is already 4 years old...
Bye,
Tassilo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-03 19:20 ` Tassilo Horn
@ 2012-07-03 22:24 ` Glenn Morris
2012-07-04 6:19 ` Tassilo Horn
2012-07-05 18:35 ` Glenn Morris
1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-07-03 22:24 UTC (permalink / raw)
To: Tassilo Horn; +Cc: Vladimir Lomov, 11837
Tassilo Horn wrote:
> Good catch. I've fixed that in AUCTeX CVS.
It hasn't shown up in
http://cvs.savannah.gnu.org/viewvc/auctex/auctex/font-latex.el?view=log
for me yet, so I don't know what change you made, but you could probably
just remove the associated code entirely, since it seems no one ever
noticed it was doing nothing, so this can't be an area that is
noticeably slow and in need of byte-compilation tricks.
> I think, it's time for a new AUCTeX release. 11.86 is already 4
> years old...
Then you could fix http://debbugs.gnu.org/10584 :)
Isn't it "only" 2 years though?
http://lists.gnu.org/archive/html/info-gnu/2010-02/msg00012.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-03 22:24 ` Glenn Morris
@ 2012-07-04 6:19 ` Tassilo Horn
0 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2012-07-04 6:19 UTC (permalink / raw)
To: Glenn Morris; +Cc: Vladimir Lomov, 11837
Glenn Morris <rgm@gnu.org> writes:
Hi Glenn,
>> Good catch. I've fixed that in AUCTeX CVS.
>
> It hasn't shown up in
>
> http://cvs.savannah.gnu.org/viewvc/auctex/auctex/font-latex.el?view=log
>
> for me yet, so I don't know what change you made,
Ups, I forgot to commit.
> but you could probably just remove the associated code entirely, since
> it seems no one ever noticed it was doing nothing, so this can't be an
> area that is noticeably slow and in need of byte-compilation tricks.
I just corrected the prefix. My very subjective feeling is that
initially opening a very large latex file is a bit faster now.
>> I think, it's time for a new AUCTeX release. 11.86 is already 4
>> years old...
>
> Then you could fix http://debbugs.gnu.org/10584 :)
That would be fixed automatically. I'll ask on the auctex-devel list if
it's the right time for a new release.
> Isn't it "only" 2 years though?
> http://lists.gnu.org/archive/html/info-gnu/2010-02/msg00012.html
Yes, when viewing the info of the ELPA package, there's only a 2008
copyright header so I guessed the latest release was in 2008.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
2012-07-03 19:20 ` Tassilo Horn
2012-07-03 22:24 ` Glenn Morris
@ 2012-07-05 18:35 ` Glenn Morris
1 sibling, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2012-07-05 18:35 UTC (permalink / raw)
To: 11837-done
Summary:
This is a long-standing font-latex.el bug, it just happens that Emacs is
no longer silently ignoring it. Updating your font-latex will make it go
away.
http://cvs.savannah.gnu.org/viewvc/auctex/auctex/font-latex.el?r1=5.193&r2=5.194
Tassilo Horn wrote:
> Good catch. I've fixed that in AUCTeX CVS. I think, it's time for a
> new AUCTeX release. 11.86 is already 4 years old...
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-07-05 18:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 2:21 bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to compile nil Vladimir Lomov
2012-07-02 14:12 ` Stefan Monnier
2012-07-02 23:10 ` Glenn Morris
2012-07-03 19:20 ` Tassilo Horn
2012-07-03 22:24 ` Glenn Morris
2012-07-04 6:19 ` Tassilo Horn
2012-07-05 18:35 ` Glenn Morris
2012-07-02 23:21 ` Vladimir Lomov
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).