Bug in font-latex.el

10 views
Skip to first unread message

Robert Goldman

unread,
May 10, 2013, 1:34:04 PM5/10/13
to Development of Aquamacs Emacs
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

David Reitter

unread,
May 10, 2013, 1:38:04 PM5/10/13
to aquamac...@googlegroups.com, Robert Goldman
Robert,
Have a look at where font-latex.el is. If it's AUCTeX, inform the AUCTeX people; otherwise, this would be a good bug report for Emacs.
Chances are the arguments changed in a recent Emacs update, and the code probably isn't in use if that force-redisplay function is present.

- David


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
> --
> You received this message because you are subscribed to the Google Groups "aquamacs-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to aquamacs-deve...@googlegroups.com.
>
>

Reply all
Reply to author
Forward
0 new messages