[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Fwd: Bug in font-latex.el
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Fwd: Bug in font-latex.el |
Date: |
Sun, 12 May 2013 12:01:27 +0200 |
Hi Robert,
you're right, `jit-lock-force-redisplay' has been recently changed,
see http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/112357 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;
- 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.
Bye,
Mosè
2013/5/10 Robert Goldman <address@hidden>:
> I submitted this bug to Aquamacs, because I encountered it there. David
> Reitter, the Aquamacs maintainer said I should pass it on to you.
>
> I'm not sure that just dropping the BUF argument is enough, because I'm
> not sure if START and END are buffer positions are markers.
> JIT-LOCK-FORCE-REDISPLAY may need the latter.
>
> best,
> R
>
> -------- Original Message --------
> Subject: Bug in font-latex.el
> Date: Fri, 10 May 2013 12:34:04 -0500
> From: Robert Goldman <address@hidden>
> Reply-To: address@hidden
> To: Development of Aquamacs Emacs <address@hidden>
>
> font-latex.el has font-latex-jit-lock-force-redisplay whose docstring says:
>
> "Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
>
> The first sexpression is 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)
>
> but when I look at the source for jit-lock-force-redisplay (in
> jit-lock.el.gz), I see that it takes only two arguments (start and end),
> not BUF. Interestingly, its docstring mentions a BUF argument, which
> suggests it was recently updated without the docstring getting updated.
>
> I think we need simply drop that BUF argument. jit-lock-force-redisplay
> extracts the right buffer from the start and end markers.
>
>
> GNU Emacs 24.3.50.3 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
> of 2013-05-07 on asura.local - Aquamacs Distribution 3.xdev
>
> Hope that helps,
> r
>
>
> _______________________________________________
> auctex-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/auctex-devel