[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
with-wrapper-hook is obsolete; how to replace it?
From: |
Paul Eggert |
Subject: |
with-wrapper-hook is obsolete; how to replace it? |
Date: |
Sun, 15 May 2016 10:01:05 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
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? It's not immediately
obvious. That is, if there is source code like this:
(with-wrapper-hook filter-buffer-substring-functions (beg end delete) BODY)
where filter-buffer-substring-functions is defined like this:
(defvar filter-buffer-substring-functions nil
"This variable is a wrapper hook around `buffer-substring--filter'.")
then what should I replace the source code with?
- with-wrapper-hook is obsolete; how to replace it?,
Paul Eggert <=