GNU bug report logs - #11837
24.1.50; *Compile-Log* Error: Don't know how to compile nil

Previous Next

Package: emacs;

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.

View this report as an mbox folder, status mbox, maintainer mbox


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):

From: Vladimir Lomov <lomov.vl <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50; *Compile-Log* Error: Don't know how to compile nil
Date: Mon, 2 Jul 2012 11:21:25 +0900
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):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Vladimir Lomov <lomov.vl <at> gmail.com>
Cc: 11837 <at> debbugs.gnu.org
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Mon, 02 Jul 2012 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)?


        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):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Vladimir Lomov <lomov.vl <at> gmail.com>, 11837 <at> debbugs.gnu.org
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Mon, 02 Jul 2012 19:10:19 -0400
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):

From: Vladimir Lomov <lomov.vl <at> gmail.com>
To: 11837 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#11837: 24.1.50; *Compile-Log* Error: Don't know how to
	compile nil
Date: Tue, 3 Jul 2012 08:21:36 +0900
[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\203DA\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<@\211@\314\315\316\fP!!\210\314\315\316\f\317Q!!\210)A\211\204*\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"
[backtrace.txt (text/plain, attachment)]
[ex.ltx (text/x-tex, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11837; Package emacs. (Tue, 03 Jul 2012 19:26:01 GMT) Full text and rfc822 format available.

Message #19 received at 11837 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Vladimir Lomov <lomov.vl <at> gmail.com>, 11837 <at> debbugs.gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Tue, 03 Jul 2012 21:20:53 +0200
Glenn Morris <rgm <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11837; Package emacs. (Tue, 03 Jul 2012 22:30:01 GMT) Full text and rfc822 format available.

Message #22 received at 11837 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tassilo Horn <tassilo <at> member.fsf.org>
Cc: Vladimir Lomov <lomov.vl <at> gmail.com>, 11837 <at> debbugs.gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Tue, 03 Jul 2012 18:24:48 -0400
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11837; Package emacs. (Wed, 04 Jul 2012 06:25:02 GMT) Full text and rfc822 format available.

Message #25 received at 11837 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Vladimir Lomov <lomov.vl <at> gmail.com>, 11837 <at> debbugs.gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Wed, 04 Jul 2012 08:19:28 +0200
Glenn Morris <rgm <at> 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




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 05 Jul 2012 18:41:01 GMT) Full text and rfc822 format available.

Notification sent to Vladimir Lomov <lomov.vl <at> gmail.com>:
bug acknowledged by developer. (Thu, 05 Jul 2012 18:41:02 GMT) Full text and rfc822 format available.

Message #30 received at 11837-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 11837-done <at> debbugs.gnu.org
Subject: Re: bug#11837: 24.1.50;
	*Compile-Log* Error: Don't know how to compile nil
Date: Thu, 05 Jul 2012 14:35:53 -0400
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...




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 05 Jul 2012 18:41:02 GMT) Full text and rfc822 format available.

Notification sent to Marius Hofert <marius.hofert <at> math.ethz.ch>:
bug acknowledged by developer. (Thu, 05 Jul 2012 18:41:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Aug 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.