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.