From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fu Yuan Newsgroups: gmane.emacs.help Subject: Re: How to remove a property from an overlay? Date: Sat, 31 Jul 2021 09:15:02 -0400 Message-ID: References: <87a6m2dg7o.fsf@mbork.pl> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 31 15:15:47 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9oqB-0006oZ-Ks for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 15:15:47 +0200 Original-Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9oqA-0005w0-F9 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 09:15:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9opW-0005tv-Qb for help-gnu-emacs@gnu.org; Sat, 31 Jul 2021 09:15:07 -0400 Original-Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:40719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9opV-0005PQ-Go for help-gnu-emacs@gnu.org; Sat, 31 Jul 2021 09:15:06 -0400 Original-Received: by mail-qt1-x82a.google.com with SMTP id m11so8479097qtx.7 for ; Sat, 31 Jul 2021 06:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=v8a9UC33CoFt0gw9okP4VwZmkIcWxwgR0LuuROX2QnA=; b=vP1haVgIMCbFHWHj7hKDptoLS83Z84ZmhTE5ZcFjt81U9AF3pbv1EEtAmYJkAiVVZ4 1mdO2aTocOvs+FpwvxYlNDte39wTeDVQE0w5DeUFQkiudSY0LEh2+8pp53F/M3qELGdU Bxy93sciBQwCnr8l+ulroQx+YuQawMph8WobWcTdrVOhfas986jF+PB6Rnuek6+FvXWB NTaRNJ9oeWhAyB3lZUyrZsCfD1N9Q58LHMu+AeVSfi68fcMLm0XDDxQiUDbiNX5mnxFj 3TbfFXW0QQFvphotG8W5E9eAe97bkPXILslybxmgfutaRe/pLGCuJyxjTRIdpfuL8HyY WDfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=v8a9UC33CoFt0gw9okP4VwZmkIcWxwgR0LuuROX2QnA=; b=FmYIiNrQJf2CbOzJRAIGsB7i8lPPvU83cX0KPbOR/+INNpSSlYhfuOBN73rsBfcVCU m3u3AQrQOaCCSiQMrd/R3O4TfLkZXkweTPoeEI8nX7dnNlRXtyxHBbOiNH9g7hOVjzXN Eh/OtxyJOr3zfR7OzSzI2uyT0Y5sJr/pd91gXmsBXEMIyhg22mprGapG8ufxAYiOVbuI EWWQCDqQZ/wegXBsk95UpxE5hAJiYzRhtZBA/Dz+TyKA83dlIIxlR3kukbs9CTDiESXS Mchg0chsUweJh/0gwp+WKyhYsnjDldwPV99nsNEYPKB/1uX44qs7nitMGlYqZk9fDUkx EEFA== X-Gm-Message-State: AOAM530HEjjtk+YBFfg4eXl3zath0JZOXvKVgDnNQq4RX54nW8LvSs59 0Shn0pDuQ3864MViXZ67LuqvxRjMZHvBJQ== X-Google-Smtp-Source: ABdhPJyWvrz5C/uiQu7V2vYFMgKRIacCXn/kUYcsaa3CSN4wdChmuJuQfVDSEW6LSi7jx7My9ua4Kg== X-Received: by 2002:ac8:74c4:: with SMTP id j4mr6227317qtr.161.1627737304442; Sat, 31 Jul 2021 06:15:04 -0700 (PDT) Original-Received: from ?IPv6:2603:7080:302:635e:200d:76b:dd41:199d? (2603-7080-0302-635e-200d-076b-dd41-199d.res6.spectrum.com. [2603:7080:302:635e:200d:76b:dd41:199d]) by smtp.gmail.com with ESMTPSA id n5sm2509481qkp.116.2021.07.31.06.15.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Jul 2021 06:15:04 -0700 (PDT) In-Reply-To: <87a6m2dg7o.fsf@mbork.pl> X-Mailer: iPhone Mail (17H35) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=casouri@gmail.com; helo=mail-qt1-x82a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132213 Archived-At: > =E5=9C=A8 2021=E5=B9=B47=E6=9C=8831=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=884:4= 6=EF=BC=8CMarcin Borkowski =E5=86=99=E9=81=93=EF=BC=9A >=20 > =EF=BB=BF >> On 2021-07-30, at 22:02, Stefan Monnier via Users list for the GNU Emacs t= ext editor wrote: >>=20 >> Marcin Borkowski [2021-07-30 20:31:35] wrote: >>> is there any way I can remove property `prop' from overlay `ovl' besides= >>> (overlay-put ovl 'prop nil) >>> which does not really remove it, only sets it to nil? >>=20 >> The recommendation is to try and make sure you always give semantics to >> those properties such that nil behaves the same as the absence of >> the property. >=20 > Could that be put in the manual? Reminds me of the similar property of plists, we could also add to plist=E2=80= =99s manual. Yuan=