From: Ihor Radchenko <yantar92@posteo.net>
To: "Дмитрий Логвиненко" <dmlogv@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: [POLL] Will it be ok to allow HABIT property inheritance? (optionally) (was: [BUG] org-habit does not respect STYLE property inheritance)
Date: Thu, 04 May 2023 09:53:19 +0000 [thread overview]
Message-ID: <877ctopgmo.fsf@localhost> (raw)
In-Reply-To: <CAB+pTYkWaKXDa24-PCdJfSeXYm2=uBNk8uwWkELoSBmgQe6o7g@mail.gmail.com>
Дмитрий Логвиненко <dmlogv@gmail.com> writes:
> I've noticed that org-habits does not take an inherited STYLE property
> when it searches entries.
> ....
> ;; Proposed
> (defun org-is-habit-p (&optional pom)
> "Is the task at POM or point a habit?"
> (string= "habit" (org-entry-get (or pom (point)) "STYLE" 'selective)))
I am not sure if it should be considered a bug.
Currently, sub-tasks under habits are not considered habits.
With your patch, they might be, if a user have customized
`org-use-property-inheritance' to t. (Of course, if user added "STYLE"
there, it is on purpose, and there is no problem).
I am generally in favour of allowing STYLE to be inherited, but it is
technically a breaking change, as I described.
Let's see if anyone voices against this change.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-05-04 9:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-03 13:03 [BUG] org-habit does not respect STYLE property inheritance Дмитрий Логвиненко
2023-05-04 9:53 ` Ihor Radchenko [this message]
2023-05-18 10:38 ` [POLL] Will it be ok to allow HABIT property inheritance? (optionally) (was: [BUG] org-habit does not respect STYLE property inheritance) Ihor Radchenko
2023-05-18 16:10 ` [POLL] Will it be ok to allow HABIT property inheritance? (optionally) Colin Baxter
2023-05-18 16:25 ` Ihor Radchenko
2023-05-18 16:32 ` Colin Baxter
2023-06-15 17:11 ` [POLL] Will it be ok to allow HABIT property inheritance? (optionally) (was: [BUG] org-habit does not respect STYLE property inheritance) Dmitry Logvinenko
2023-06-16 9:45 ` Ihor Radchenko
2023-06-22 17:08 ` Dmitry Logvinenko
2023-06-23 10:51 ` Ihor Radchenko
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=877ctopgmo.fsf@localhost \
--to=yantar92@posteo.net \
--cc=dmlogv@gmail.com \
--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).