Add a missing parameter in advice on font-lock-fontify-keywords-region#344
Add a missing parameter in advice on font-lock-fontify-keywords-region#344
Conversation
|
Hi @cpitclaudel, thanks for your PR for |
|
Otherwise I can first merge #238 in |
|
BTW could you precise which recent Emacs version you tested, and which mode contains the function git-region-history ? |
|
I tested the current master, but things have been broken for a while. The font-lock-fontify-keywords-region has taken the third argument since at least 1995, and our advice was just wrong. |
|
OK, so thanks for having spotted this longstanding bug! Just for the record, could you give more details about git-region-history? is it related to Magit? |
No, not at all :) It's called by vc-region-history as vc-git-region-history-mode, which is a function vanilla Emacs. |
|
OK :) I regularly use Emacs' Git facilities (with commands having |
|
Successfully tested after merging locally this PR in latest |
This breaks various other modes in recent Emacs, most noticeably git-region-history:
Error during redisplay: (jit-lock-function 1501) signaled (wrong-number-of-arguments #[(ad--addoit-function beg end loudly) "\306� \203 \0\307\310\311
!\312\313Q!!\203 \0\310\311
!\312\313Q!�
#\210��
#\211�)\207" [ad-return-value proof-buffer-type proof-assistant-symbol beg end loudly nil fboundp intern symbol-name "-" "font-lock-fontify-syntactically-region" ad--addoit-function] 6] 3)