[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Added alias for removed font-lock function
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] Added alias for removed font-lock function |
Date: |
Sat, 07 Jan 2023 10:52:49 +0200 |
> Date: Sat, 31 Dec 2022 22:57:34 -0600
> From: "Benson Chu" <bensonchu457@gmail.com>
>
> Er, I mean this.
>
> Thanks!
> Benson
>
> On Sat, Dec 31, 2022, at 10:53 PM, Benson Chu wrote:
> > Something like this?
> >
> > Thanks!
> > Benson
> >
> > On Thu, Dec 22, 2022, at 8:49 AM, Stefan Monnier wrote:
> >>> +(define-obsolete-function-alias 'font-lock-fontify-syntactically-region
> >>> #'font-lock-default-fontify-syntactically "29.1")
> >>
> >>
> >> Indeed, tho, could you try and fit this within 80 columns?
> >> Also, I think the better replacement for the old
> >> `font-lock-fontify-syntactically-region` could be
> >> (funcall font-lock-fontify-syntactically-function BEG END), which by
> >> default will end up calling `font-lock-default-fontify-syntactically`.
> >>
> >>
> >> Stefan
> > Attachments:
> > * 0001-Added-back-renamed-function-font-lock-fontify-syntac.patch
>
> From 6b21f1ed56b0b196fba3a626f50464b91139db47 Mon Sep 17 00:00:00 2001
> From: Benson Chu <bensonchu457@gmail.com>
> Date: Sat, 31 Dec 2022 19:45:43 -0600
> Subject: [PATCH] Added back renamed function
> font-lock-fontify-syntactically-region
>
> A more accurate replacement for font-lock-fontify-syntactically-region
> would be a function that funcalls the
> font-lock-fontify-syntactically-function variable. That way, callers
> of the function can inherit new behavior, if the value of that variable
> changes.
>
> * lisp/font-lock.el: remove obsolete alias, added defun for
Stefan, Lars, any further comments? If not, I will install this soon
on the emacs-29 branch.