GNU bug report logs - #16879
24.3.50; Error running timer `font-latex-jit-lock-force-redisplay'

Previous Next

Package: auctex;

Reported by: "Sebastien Vauban" <sva-news <at> mygooglest.com>

Date: Tue, 25 Feb 2014 13:36:01 UTC

Severity: normal

Merged with 14394

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: "Sebastien Vauban" <public-sva-news-D0wtAvR13HarG/iDocfnWg <at> plane.gmane.org>
Cc: public-16879-ubl+/3LiMTaZdePnXv/OxA <at> plane.gmane.org
Subject: bug#16879: 24.3.50; Error running timer `font-latex-jit-lock-force-redisplay'
Date: Tue, 25 Feb 2014 14:57:54 +0100

"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg <at> public.gmane.org>
writes:
>   ╭────
>   │ Error running timer `font-latex-jit-lock-force-redisplay':
>   │ (wrong-number-of-arguments (2 . 2) 3) [2 times]
>   ╰────

The function `font-latex-jit-lock-force-redisplay' is provided by
auctex. This bug was (temporarily) fixed in the auctex repository in
commit 5b5ef6ee.

Here's the commit msg:
    * font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely
    on existing `jit-lock-force-redisplay' because recent bzr Emacs
    broke compatibility changing the number of arguments.  Reported by
    Robert Goldman.

See also bug #14394

The fix was temporary.

Here's the more recent definition of
font-latex-jit-lock-force-redisplay:
(defun font-latex-jit-lock-force-redisplay (buf start end)
  "Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
    ;; The following block is an expansion of `jit-lock-force-redisplay'
    ;; and involved macros taken from CVS Emacs on 2007-04-28.
    (with-current-buffer buf
      (let ((modified (buffer-modified-p)))
	(unwind-protect
	    (let ((buffer-undo-list t)
		  (inhibit-read-only t)
		  (inhibit-point-motion-hooks t)
		  (inhibit-modification-hooks t)
		  deactivate-mark
		  buffer-file-name
		  buffer-file-truename)
	      (put-text-property start end 'fontified t))
	  (unless modified
	    (restore-buffer-modified-p nil))))))

I suggest you update auctex -- but perhaps using the above definition
will be sufficient.

-- 
Nico.





This bug report was last modified 11 years and 91 days ago.

Previous Next


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