[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master a7c65fc666: Allow nil value for filter-buffer-substring-funct
From: |
Robert Pluim |
Subject: |
Re: master a7c65fc666: Allow nil value for filter-buffer-substring-function |
Date: |
Tue, 20 Sep 2022 10:08:19 +0200 |
>>>>> On Mon, 19 Sep 2022 16:37:04 -0400, Stefan Monnier
>>>>> <monnier@iro.umontreal.ca> said:
>> Ick. If `buffer-substring--filter' is the default function to call, it
>> should not have the '--' internal function marker.
Stefan> Why? You're *not* supposed to call `buffer-substring--filter'.
Stefan> Instead you're supposed to call the value contained in
Stefan> `filter-buffer-substring-function`, whichever it is. (and if you're
Stefan> modifying this variable, then you're supposed to modify it with
Stefan> `add-function` and your function will then receive the "previous"
Stefan> function to call).
Itʼs not obvious to me that youʼre supposed to use `add-function'. And
even if it were, having '--' appear in the public api just feels
wrong. Oh well.
Robert
--