From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yBvRBPMJaF/hWwAA0tVLHw (envelope-from ) for ; Mon, 21 Sep 2020 02:03:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8E9+APMJaF+NQwAAB5/wlQ (envelope-from ) for ; Mon, 21 Sep 2020 02:03:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 327A694053D for ; Mon, 21 Sep 2020 02:03:30 +0000 (UTC) Received: from localhost ([::1]:52270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKBAt-0005In-Oh for larch@yhetil.org; Sun, 20 Sep 2020 22:03:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKBAG-0005Ib-6t for emacs-orgmode@gnu.org; Sun, 20 Sep 2020 22:02:48 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKBAE-0006h9-4Z for emacs-orgmode@gnu.org; Sun, 20 Sep 2020 22:02:47 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 031245C00A6 for ; Sun, 20 Sep 2020 22:02:44 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute1.internal (MEProxy); Sun, 20 Sep 2020 22:02:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=gbX7qObqTW1BOg/FF5KKGlsjxI73z rBHS7Qrb9WDHmA=; b=XlJEfgiHCkPF/TVMMhvVTwfRUaMFtiSDF156p0qFPaNHx wukRxIrXkRiEFXCvHZwt81kpH7zJssIyeJCi3Nw8JgjtulXIqCoo0itIb5fthgHP Lc2PCQnQ1NXZVNJNwtPrPYDfxl3/a71xxTaABk3ScbDG7A4eKMitEtMPbWSAuEvS znykb0MeejBP9dPknPd/L7O9Aof64GkIUI6qw1iRsXldNKUvoy14npC3q+nisrKM LzgO/FoSoY0KqwpgKYpkpiHwdTzBCKpZnBRSUdZSi2pxWm4P5LM6itkC5/R6PO6X liauU/ly1i/3K83LO6jYv+9M0DdhOMhEsfVpdgrYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddugdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfffhffvufgtsehmtderreerreejnecuhfhrohhmpedfpfhitghhohhl rghsucfurghvrghgvgdfuceonhhitghksehnihgtkhhsrghvrghgvgdrtggrqeenucggtf frrghtthgvrhhnpefhvdefgeefieehudeifedtledvtddugeekheevvdduvdeikeejtedt udeiheeggeenucffohhmrghinhepohhrghhmohguvgdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehnihgtkhesnhhitghkshgrvhgr ghgvrdgtrg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 64A87660069; Sun, 20 Sep 2020 22:02:36 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-325-g8593b62-fm-20200916.004-g0f995879-bis Mime-Version: 1.0 Message-Id: Date: Sun, 20 Sep 2020 22:02:15 -0400 From: "Nicholas Savage" To: "Emanuel Berg via General discussions about Org-mode." Subject: =?UTF-8?Q?[PATCH]_(org-remove-occur-highlights)_Implements_option_to_rem?= =?UTF-8?Q?ove_highlights_between_points?= Content-Type: multipart/mixed; boundary=d38c6f36f583409aa2a77b3955aefe7c Received-SPF: none client-ip=66.111.4.26; envelope-from=nick@nicksavage.ca; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 22:02:44 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=XlJEfgiH; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 2.10 X-TUID: Y0a5/+/zlBVC --d38c6f36f583409aa2a77b3955aefe7c Content-Type: text/plain I realize now that I messed up sending this patch yesterday so it didn't show up on updates.orgmode.org. I just wanted to repost it with a correct subject to make sure it didn't get lost. My original message follows. -- I posted earlier about why org-remove-occur-highlights ignored it's options of beg and end. I'm fairly sure it was so they could be implemented later. I wanted to use this functionality, so I've implemented it. This should not change any current behaviour. If beg and end are nil, it will run the same way as before. This is called as part of org-sparse-tree, and my changes do not affect that. When beg and end are non-nil, it checks which overlays are between those two points and deletes them. I've ensured that 'make test' still passes and believe I've formatted my changelog entry as required. If I'm missing something about how this should be working, please let me know. My copyright paperwork with FSF is currently in progress, but I wanted to put this out there to get comments as necessary. Thanks, Nick --d38c6f36f583409aa2a77b3955aefe7c Content-Disposition: attachment;filename="0001-org.el-Implements-option-to-remove-highlights-betwee.patch" Content-Type: text/x-patch; name="0001-org.el-Implements-option-to-remove-highlights-betwee.patch" Content-Transfer-Encoding: BASE64 RnJvbSAzMjEzYThkNTBhZjBhOTliZTQzYmYxZjkxYzU2MjFhNjQ3NDU0OGRkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBuaWNrIDxuaWNrQG5pY2tzYXZhZ2UuY2E+CkRhdGU6 IFRodSwgMTcgU2VwIDIwMjAgMjE6NDk6NDMgLTA0MDAKU3ViamVjdDogW1BBVENIXSBvcmcu ZWw6IEltcGxlbWVudHMgb3B0aW9uIHRvIHJlbW92ZSBoaWdobGlnaHRzIGJldHdlZW4gcG9p bnRzCgoqIGxpc3Avb3JnLmVsIChvcmctcmVtb3ZlLW9jY3VyLWhpZ2hsaWdodHMpOiBJbXBs ZW1lbnRzIEJFRyBhbmQgRU5EIGluCm9yZGVyIHRvIGFsbG93IHRoZSBvcHRpb24gb2YgcmVt b3ZpbmcgaGlnaGxpZ2h0cyBiZXR3ZWVuIGEgcmFuZ2Ugb2YKcG9pbnRzIGFuZCBhZGp1c3Qg dGhlIHNob3duIGNvbnRleHQuCgpvcmctcmVtb3ZlLW9jY3VyLWhpZ2hsaWdodHMgaGFzIGxv bmcgaGFkIHR3byBvcHRpb25zLCBCRUcgYW5kIEVORCwKdGhhdCB3ZXJ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KwkJ KGFkZC10by1saXN0ICd0ZW1wLW92ZXJsYXlzIG92ZXJsYXkpKSkpKSkKKyAgICAgIChzZXRx IG9yZy1vY2N1ci1oaWdobGlnaHRzIHRlbXAtb3ZlcmxheXMpKSkpKQogCiA7Ozs7IFByaW9y aXRpZXMKIAotLSAKMi4yMC4xCgo= --d38c6f36f583409aa2a77b3955aefe7c--