[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Fwd: Bug in font-latex.el

From: David Kastrup
Subject: Re: [AUCTeX-devel] Fwd: Bug in font-latex.el
Date: Sun, 12 May 2013 12:36:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Mosè Giordano (2013-05-12) writes:
>> you're right, `jit-lock-force-redisplay' has been recently changed,
>> see  Maybe
>> there is a good reason behind the change of arguments number, but I
>> simply don't know it.  I can see two solutions:
>> - report this to Emacs and make them restore backward compatibility;
> If this is done probably depends on how much the function is seen as
> being for internal use only.  Its use in AUCTeX is probably already a
> bit hackish but so is lots of compatibility code.
>> - implement `font-latex-jit-lock-force-redisplay' in AUCTeX without
>> relying on possibly existing `jit-lock-force-redisplay'.
>> As a temporary fix, I'm going to change
>> `font-latex-jit-lock-force-redisplay' following the second solution.
> Not sure what you have in mind, but we could also use something like the
> following.  Not that it is particulary nice.
>       (condition-case nil
>         (jit-lock-force-redisplay buf start end)
>       (error
>        (jit-lock-force-redisplay (copy-marker start) (copy-marker end))))

I'd just catch wrong-number-of-arguments rather than any error.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]