emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it valid to call isearch-filter-predicate outside isearch?


From: Ihor Radchenko
Subject: Re: Is it valid to call isearch-filter-predicate outside isearch?
Date: Sun, 18 Jun 2023 11:31:16 +0000

Michael Heerdegen <michael_heerdegen@web.de> writes:

>> May `define-advice' be modified to work on variable values? That way,
>> one can override the variable value and later restore the old one using
>> the existing machinery.
>
> What's wrong with `add-function' and `remove-function' (which work on
> variable values)?
>
> Seems you misunderstood what I'm suggesting, or you misunderstand how
> advising works.

I am suggesting variable non-function values.
For example, consider (defcustom foo "value1" ...) that should be replaced
with "value2" while a minor mode is active.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]