GNU bug report logs - #20295
11.88.3; AUCTeX, ESS, Noweb, and "Error running timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)"

Previous Next

Package: auctex;

Reported by: "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com>

Date: Fri, 10 Apr 2015 17:49:02 UTC

Severity: normal

Tags: moreinfo

Found in version 11.88.3

Done: Arash Esbati <arash <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 20295 in the body.
You can then email your comments to 20295 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-auctex <at> gnu.org:
bug#20295; Package auctex. (Fri, 10 Apr 2015 17:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Fri, 10 Apr 2015 17:49:02 GMT) Full text and rfc822 format available.

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

From: "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com>
To: "bug-auctex <at> gnu.org" <bug-auctex <at> gnu.org>
Subject: 11.88.3; AUCTeX, ESS, Noweb, and "Error running timer
 `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)"
Date: Fri, 10 Apr 2015 17:13:38 +0000
[Message part 1 (text/plain, inline)]
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your bug report will be posted to the AUCTeX bug reporting list.
------------------------------------------------------------------------

The effect is to generate the error message:
  Error running timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)
or drop into the debugger with debug-on-error set to t.

Contents of file foo.Rnw:
\documentclass[12pt]{article}
\begin{document}
\end{document}
%%% Local Variables:
%%% eval: (ess-noweb-mode t)
%%% End:

Actions:
Position the cursor anywhere in the file.
Run the command "LaTeX-section".
Type a level or no level at all, and press enter.
Type a title or no title at all, and press enter.

Note: The "Rnw" file type makes the major mode be LaTeX and adds the polymode for Rnw minor mode.  The motivation for turning on the ess-noweb-mode minor mode is to obtain the default bindings for knitr-ing and then pdflatex-ing the document.

Emacs  : GNU Emacs 24.4.1 (i686-pc-mingw32)
of 2014-10-24 on LEG570
Package: 11.88.3

current state:
==============
(setq
AUCTeX-date "2015-03-22"
window-system 'w32
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex" "c:/Users/bourgm1/.emacs.d/elpa/auctex-11.88.3/style"
                                  "c:/Users/bourgm1/.emacs.d/auctex/auto" "c:/Users/bourgm1/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil
                                     (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
                                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
                                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help
                                     "Run Makeinfo with Info output")
                                    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help
                                     "Run Makeinfo with HTML output")
                                    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help
                                     "Run AMSTeX")
                                    ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode) :help
                                     "Run ConTeXt once")
                                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help
                                     "Run ConTeXt until completion")
                                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
                                    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
                                    ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
                                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                                    ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible
                                     TeX-queue-command)
                                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file")
                                    ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file")
                                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
                                     "Check LaTeX file for correctness")
                                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")
                                    ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")
                                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                                     "Delete generated intermediate and output files")
                                    ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
)

[Message part 2 (text/html, inline)]

Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Fri, 10 Apr 2015 21:28:02 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tsdh <at> gnu.org>
To: "Bourgoin\, Mario" <Mario.Bourgoin <at> emc.com>
Cc: 20295 <at> debbugs.gnu.org
Subject: Re: bug#20295: 11.88.3; AUCTeX, ESS, Noweb, and "Error running timer
 `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)"
Date: Fri, 10 Apr 2015 23:27:01 +0200
"Bourgoin, Mario" <Mario.Bourgoin <at> emc.com> writes:

Hi Mario,

> Error running timer `font-latex-jit-lock-force-redisplay':
> (wrong-number-of-arguments (2 . 2) 3)
>
> Package: 11.88.3

The error says that `font-latex-jit-lock-force-redisplay' was called
with a wrong number of arguments, and that 3 arguments where given.  But
three is the right number of arguments!

What does `C-h f font-latex-jit-lock-force-redisplay' show?  I think you
have a redefinition of that function with a different number of args
laying around somewhere.

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Mon, 13 Apr 2015 19:15:02 GMT) Full text and rfc822 format available.

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

From: "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: "20295 <at> debbugs.gnu.org" <20295 <at> debbugs.gnu.org>
Subject: RE: bug#20295: 11.88.3; AUCTeX, ESS, Noweb, and "Error running
 timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 .
 2) 3)"
Date: Mon, 13 Apr 2015 19:14:30 +0000
Hi Tassilo,

Thank you for answering.

> What does `C-h f font-latex-jit-lock-force-redisplay' show?

I get
----
font-latex-jit-lock-force-redisplay is a compiled Lisp function in `font-latex.el'.

(font-latex-jit-lock-force-redisplay BUF START END)

Compatibility for Emacsen not offering `jit-lock-force-redisplay'.
----
The file `font-latex.el' has the following in its header:
;; Authors:    Peter S. Galbraith <psg <at> debian.org>
;;             Simon Marshall <Simon.Marshall <at> esrin.esa.it>
;; Maintainer: auctex-devel <at> gnu.org
;; Created:    06 July 1996
;; Keywords:   tex, wp, faces

The error's back trace when debug-on-error is t shows the following:
----
Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 3)
  jit-lock-force-redisplay(#<buffer foo.Rnw> 48 60)
  font-latex-jit-lock-force-redisplay(#<buffer foo.Rnw> 48 60)
  apply(font-latex-jit-lock-force-redisplay (#<buffer foo.Rnw> 48 60))
  byte-code("r\301\302H\303H\"\210)\301\207" [timer apply 5 6] 4)
  timer-event-handler([t 21804 4831 916000 nil font-latex-jit-lock-force-redisplay (#<buffer foo.Rnw> 48 60) nil 0])
  read-string("Label: " "sec:foo")
  byte-code("\306	\"\211A@\307\n8\310\311!\306
@	\"9\312\211:;\312\211<=\312\211>?\312@\313\n8\204:
----

And `C-h f jit-lock-force-redisplay' reveals:
----
jit-lock-force-redisplay is a compiled Lisp function in `jit-lock.el'.

(jit-lock-force-redisplay START END)

Force the display engine to re-render START's buffer from START to END.
This applies to the buffer associated with marker START.
----
The file `jit-lock.el' gas the following in its header:
;; Author: Gerd Moellmann <gerd <at> gnu.org>
;; Keywords: faces files
;; Package: emacs

;; This file is part of GNU Emacs.

Indeed, the definition of ` font-latex-jit-lock-force-redisplay' begins as follows:
----
(defun font-latex-jit-lock-force-redisplay (buf start end)
  "Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
  (if (fboundp 'jit-lock-force-redisplay)
      (jit-lock-force-redisplay buf start end)
----
So it calls the apparently two-argument jit-lock-force-redisplay with three arguments.

Mario Bourgoin
Senior Data Scientist - Hopkinton
EMC CTD Symmetrix uCode
(508) 249-1297 Direct

-----Original Message-----
From: Tassilo Horn [mailto:tsdh <at> gnu.org] 
Sent: Friday, April 10, 2015 5:27 PM
To: Bourgoin, Mario
Cc: 20295 <at> debbugs.gnu.org
Subject: Re: bug#20295: 11.88.3; AUCTeX, ESS, Noweb, and "Error running timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)"

"Bourgoin, Mario" <Mario.Bourgoin <at> emc.com> writes:

Hi Mario,

> Error running timer `font-latex-jit-lock-force-redisplay':
> (wrong-number-of-arguments (2 . 2) 3)
>
> Package: 11.88.3

The error says that `font-latex-jit-lock-force-redisplay' was called with a wrong number of arguments, and that 3 arguments where given.  But three is the right number of arguments!

What does `C-h f font-latex-jit-lock-force-redisplay' show?  I think you have a redefinition of that function with a different number of args laying around somewhere.

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Tue, 14 Apr 2015 06:21:01 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tsdh <at> gnu.org>
To: "Bourgoin\, Mario" <Mario.Bourgoin <at> emc.com>
Cc: "20295 <at> debbugs.gnu.org" <20295 <at> debbugs.gnu.org>
Subject: Re: bug#20295: 11.88.3; AUCTeX, ESS, Noweb, and "Error running timer
 `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2 . 2) 3)"
Date: Tue, 14 Apr 2015 08:20:32 +0200
"Bourgoin, Mario" <Mario.Bourgoin <at> emc.com> writes:

Hi Mario,

> Indeed, the definition of ` font-latex-jit-lock-force-redisplay' begins as follows:
> ----
> (defun font-latex-jit-lock-force-redisplay (buf start end)
>   "Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
>   (if (fboundp 'jit-lock-force-redisplay)
>       (jit-lock-force-redisplay buf start end)
> ----
>
> So it calls the apparently two-argument jit-lock-force-redisplay with
> three arguments.

Correctly identified, but the above is not the definition of
`font-latex-jit-lock-force-redisplay' as shipped with 11.88.3.  So it
seems you have an old auctex/font-latex.el laying around somewhere in
your `load-path' which overrides the one of 11.88.3.

Do M-x list-load-path-shadows RET to find out.  The version you are
supposed to use should reside in ~/.emacs.d/elpa/auctex-11.88.3/ (or
~/.emacs.d/elpa/auctex-11.88.4/ if you updated to the newest release).

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Mon, 14 Dec 2015 19:44:03 GMT) Full text and rfc822 format available.

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

From: Nikolaus Rath <nrath <at> trialphaenergy.com>
To: <20295 <at> debbugs.gnu.org>
Subject: Using Debian?
Date: Mon, 14 Dec 2015 11:07:44 -0800
Hello,

I have exactly the same problem, and apparently I'm also using the wrong version of font-latex.el. However, M-x list-load-path-shadows doesn't show anything not installed by the Debian package manager (and I also don't have any Emacs related files installed manually anyway):

/usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.4/lisp/textmodes/flyspell
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.4/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex

26 Emacs Lisp load-path shadowings were found


However, the two listed `font-latex` files are actually the same file (one is a symlink), and Debian claims it has been shipped by AuCTeX:

$ dpkg -S /usr/share/emacs/site-lisp/auctex/font-latex.el
auctex: /usr/share/emacs/site-lisp/auctex/font-latex.el

$ apt-cache show auctex | grep Version
Version: 11.87-3+deb8u1

$ head -10 /usr/share/emacs/site-lisp/auctex/font-latex.el
;;; font-latex.el --- LaTeX fontification for Font Lock mode.

;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
;;   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.

;; Authors:    Peter S. Galbraith <psg <at> debian.org>
;;             Simon Marshall <Simon.Marshall <at> esrin.esa.it>
;; Maintainer: auctex-devel <at> gnu.org
;; Created:    06 July 1996
;; Keywords:   tex, wp, faces


Does this mean the Debian auctex package is broken?


Best,
-Nikolaus




Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Mon, 14 Dec 2015 19:50:02 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: Nikolaus Rath <nrath <at> trialphaenergy.com>
Cc: 20295 <at> debbugs.gnu.org
Subject: Re: bug#20295: Using Debian?
Date: Mon, 14 Dec 2015 20:49:39 +0100
Nikolaus Rath <nrath <at> trialphaenergy.com> writes:

> Hello,
>
> I have exactly the same problem, and apparently I'm also using the
> wrong version of font-latex.el. However, M-x list-load-path-shadows
> doesn't show anything not installed by the Debian package manager (and
> I also don't have any Emacs related files installed manually anyway):

[...]

> Does this mean the Debian auctex package is broken?

Can you install _any_ Elisp package without having M-x
list-load-path-shadows RET complain?

Last time I looked, it was not AUCTeX specifically but rather the Debian
Elisp packaging system which was completely broken.

-- 
David Kastrup




Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Mon, 14 Dec 2015 19:54:01 GMT) Full text and rfc822 format available.

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

From: Nikolaus Rath <nrath <at> trialphaenergy.com>
To: David Kastrup <dak <at> gnu.org>
Cc: "20295 <at> debbugs.gnu.org" <20295 <at> debbugs.gnu.org>
Subject: Re: bug#20295: Using Debian?
Date: Mon, 14 Dec 2015 11:53:37 -0800
On 12/14/2015 11:49 AM, David Kastrup wrote:
> Nikolaus Rath <nrath <at> trialphaenergy.com> writes:
>
>> Hello,
>>
>> I have exactly the same problem, and apparently I'm also using the
>> wrong version of font-latex.el. However, M-x list-load-path-shadows
>> doesn't show anything not installed by the Debian package manager (and
>> I also don't have any Emacs related files installed manually anyway):
>
> [...]
>
>> Does this mean the Debian auctex package is broken?
>
> Can you install _any_ Elisp package without having M-x
> list-load-path-shadows RET complain?

No, I believe the files are always installed in two directories. But why 
is that a problem? In this case the files are identical, so why care if 
they shadow each other?

Best,
-Nikolaus





Information forwarded to bug-auctex <at> gnu.org:
bug#20295; Package auctex. (Sun, 03 Mar 2024 15:42:01 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: "20295 <at> debbugs.gnu.org" <20295 <at> debbugs.gnu.org>, "Bourgoin,
 Mario" <Mario.Bourgoin <at> emc.com>
Subject: Re: bug#20295: 11.88.3; AUCTeX, ESS, Noweb, and "Error running
 timer `font-latex-jit-lock-force-redisplay': (wrong-number-of-arguments (2
 . 2) 3)"
Date: Sun, 03 Mar 2024 16:40:16 +0100
Tassilo Horn <tsdh <at> gnu.org> writes:

> "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com> writes:
>
> Hi Mario,
>
>> Indeed, the definition of ` font-latex-jit-lock-force-redisplay' begins as follows:
>> ----
>> (defun font-latex-jit-lock-force-redisplay (buf start end)
>>   "Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
>>   (if (fboundp 'jit-lock-force-redisplay)
>>       (jit-lock-force-redisplay buf start end)
>> ----
>>
>> So it calls the apparently two-argument jit-lock-force-redisplay with
>> three arguments.
>
> Correctly identified, but the above is not the definition of
> `font-latex-jit-lock-force-redisplay' as shipped with 11.88.3.  So it
> seems you have an old auctex/font-latex.el laying around somewhere in
> your `load-path' which overrides the one of 11.88.3.
>
> Do M-x list-load-path-shadows RET to find out.  The version you are
> supposed to use should reside in ~/.emacs.d/elpa/auctex-11.88.3/ (or
> ~/.emacs.d/elpa/auctex-11.88.4/ if you updated to the newest release).

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

More information was requested which was not provided.  I'm closing this
report for now, we can reopen if new input arrives.

Best, Arash




bug closed, send any further explanations to 20295 <at> debbugs.gnu.org and "Bourgoin, Mario" <Mario.Bourgoin <at> emc.com> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 03 Mar 2024 15:42:02 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 03 Mar 2024 15:42:02 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. (Mon, 01 Apr 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 116 days ago.

Previous Next


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