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 CJK+JF3rY1/JcQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 23:03:57 +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 gvlfIF3rY19dagAAB5/wlQ (envelope-from ) for ; Thu, 17 Sep 2020 23:03:57 +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 D9748940609 for ; Thu, 17 Sep 2020 23:03:56 +0000 (UTC) Received: from localhost ([::1]:38620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJ2wV-0007pK-Ea for larch@yhetil.org; Thu, 17 Sep 2020 19:03:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJ2oM-0005zj-L6 for emacs-orgmode@gnu.org; Thu, 17 Sep 2020 18:55:31 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:35683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJ2k1-0007zH-Cn for emacs-orgmode@gnu.org; Thu, 17 Sep 2020 18:51:07 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 19D3977E for ; Thu, 17 Sep 2020 17:54:26 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute1.internal (MEProxy); Thu, 17 Sep 2020 17:54:26 -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=nR939LslLQi5/HVuWUKFBceTL6Kqd konN8qS7x79JpU=; b=ClF0NTYBss/fcmBNu4xRsKRJ7uvlMVVqGFsItL1G38WvV 9gQrx8IJsE/1meUAfrA7qgIplqS2Ah+fPMuDjHvP3zxC+3PFgs4tsxgMB7adP4Ka dDxKDtqgqaQmiOVdfbQikRbEW2BCktGYJROc9VIzLZN9S4UPL8xdtGZ7tUA8nI5p 8i3e2YKEYrrDD6myZdqU76gagbgZybP7H40+V8MnTuqqBlhUxpTt45qkCUavoHKn /9diC5THu3R+3VhoiNFNtMmVZjz00bqBf8xMvudUmkJmU5UKJgiJ8W7joc98tFlZ VHqIsKVVGa2fga5Trg11kn2CIKYZ4dk7PAk2JP3Og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtdehgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdfpihgthhholhgrshcuufgrvhgrghgvfdcuoehnihgtkhesnhhi tghkshgrvhgrghgvrdgtrgeqnecuggftrfgrthhtvghrnhepudeitdeuffeggfduieeite dugfffkefgieeffeevfeevteduffdvhfetvdevtdeinecuffhomhgrihhnpegrnhihthhh ihhnghdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehnihgtkhesnhhitghkshgrvhgrghgvrdgtrg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6B89D660069; Thu, 17 Sep 2020 17:54:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-324-g0f99587-fm-20200916.004-g0f995879 Mime-Version: 1.0 Message-Id: Date: Thu, 17 Sep 2020 17:53:46 -0400 From: "Nicholas Savage" To: emacs-orgmode@gnu.org Subject: org-remove-occur-highlight ignores BEG and END Content-Type: text/plain Received-SPF: none client-ip=64.147.123.24; envelope-from=nick@nicksavage.ca; helo=wout1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 17:54:26 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=ClF0NTYB; 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: -0.20 X-TUID: aV55VgccduUW I've been exploring a bit of the code base for Org Mode and I stumbled upon something I wanted to ask the wider community about. I've googled already and didn't find anything. `org-remove-occur-highlight' in org.el takes two optional parameters (alongside a third) BEG and END, but the documentary states that they are ignored. I can see in the code as well that they have no purpose. What is the reasoning for this? The only thing I can think of that could explain it is if the optional parameters are there as placeholders so in the future if they are implemented code that uses `org-remove-occur-highlight' doesn't break since it is assuming the parameters are nil. Am I on the right track here? If so, I'm going to take a crack at implementing BEG and END, since I want that functionality for my own personal todo system that might end up with some improvements on Org's end.