[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: with-wrapper-hook is obsolete; how to replace it?
From: |
Stefan Monnier |
Subject: |
Re: with-wrapper-hook is obsolete; how to replace it? |
Date: |
Mon, 16 May 2016 13:40:33 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
[ Hmm... I can't seem to see my reply, so I'll send it again. ]
> When I run ‘make compile-always’ from the lisp subdirectory I see diagnostics
> like this:
> In buffer-substring--filter:
> simple.el:4058:52:Warning: ‘with-wrapper-hook’ is an obsolete macro (as of
> 24.4); use a <foo>-function variable modified by ‘add-function’.
> How do I alter the code to use add-function instead?
Here's a translation table:
+---------------------+-----------------+----------------+
| with-wrapper-hook | foo-functions | add-hook |
+---------------------+-----------------+----------------+
| funcall | foo-function | add-function |
+---------------------+-----------------+----------------+
This replacement has already been done in buffer-substring, but we still
need to use the obsolete with-wrapper-hook in order to support the
corresponding obsolete filter-buffer-substring-functions variable.
Stefan