From: "Nicholas Savage" <nick@nicksavage.ca>
To: emacs-orgmode@gnu.org
Subject: org-remove-occur-highlight ignores BEG and END
Date: Thu, 17 Sep 2020 17:53:46 -0400 [thread overview]
Message-ID: <d4e1e166-8da2-4c1f-8d90-1671a6541992@www.fastmail.com> (raw)
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.
reply other threads:[~2020-09-17 23:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4e1e166-8da2-4c1f-8d90-1671a6541992@www.fastmail.com \
--to=nick@nicksavage.ca \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).