all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: inverse of add-to-list: remove-from-list
Date: Tue, 13 Oct 2020 13:24:43 +0200	[thread overview]
Message-ID: <87y2ka74hw.fsf@mat.ucm.es> (raw)
In-Reply-To: CAFsi02RM4qFfa1OrzAPO5yLq934XxGP7j2Y_U5kNtMP6vr7j7g@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

>>> "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.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2020-10-13 11:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 19:34 inverse of add-to-list: remove-from-list Boruch Baum
2020-10-13  8:42 ` Uwe Brauer
2020-10-13  9:09   ` Andreas Schwab
2020-10-13  9:34     ` Thibaut Verron
2020-10-13 11:24       ` Uwe Brauer [this message]
2020-10-13 13:57   ` Stefan Monnier
2020-10-14  5:58     ` Thibaut Verron
2020-10-15 15:28       ` Uwe Brauer
2020-10-15 16:31       ` Stefan Monnier
2020-10-16 11:14         ` Thibaut Verron
2020-10-14  5:28   ` Teemu Likonen
2020-10-13 20:01 ` Andreas Schwab
2020-10-13 20:07   ` Boruch Baum
2020-10-13 20:41     ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2ka74hw.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.