|
From: | Paul Eggert |
Subject: | Re: with-wrapper-hook is obsolete; how to replace it? |
Date: | Mon, 16 May 2016 11:18:41 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 05/15/2016 11:43 AM, Stefan Monnier wrote:
I don't think you can do it in a backward-compatible way. Which is why buffer-substring--filter still uses with-wrapper-hook (but only to implement the obsolete filter-buffer-substring-functions variable).
OK, thanks, how about the attached patch instead? The idea is to pacify the byte compiler without attempting to use add-function, by creating an internal-use-only version of the obsolete macro, a version that does not generate the warnings.
with-wrapper-hook.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |