[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inverse of add-to-list: remove-from-list
From: |
Uwe Brauer |
Subject: |
Re: inverse of add-to-list: remove-from-list |
Date: |
Tue, 13 Oct 2020 13:24:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "TV" == Thibaut Verron <thibaut.verron@gmail.com> writes:
> Le mar. 13 oct. 2020 à 11:10, Andreas Schwab <schwab@linux-m68k.org> a écrit :
>>
>> On Okt 13 2020, Uwe Brauer wrote:
>>
>> > But there is, as far as I know, no inverse functionality
>> >
>> > (remove-from-list 'org-export-filter-src-block-functions
>> > 'my-html-filter-src-blocks)
>> >
>> > Does not exist. Wouldn't that be useful?
>>
>> Doesn't remove do what you need?
> Note that the syntax is slightly different: the element comes second,
> and the list is unquoted.
Do you mean
(setq org-export-filter-src-block-functions (remove 'my-html-filter-src-blocks
org-export-filter-src-block-functions))
While:
(add-to-list 'org-export-filter-src-block-functions
'my-html-filter-src-blocks)
I think
(remove-from-list 'org-export-filter-src-block-functions
'my-html-filter-src-blocks)
Would be easier to recall.
smime.p7s
Description: S/MIME cryptographic signature