-
Notifications
You must be signed in to change notification settings - Fork 229
gptel-org: put hardcoded gptel-org-property-names into variable #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
3c5ce04
to
c2ab967
Compare
@hrehfeld thanks for the PR. While I'm okay with placing these in a variable, you can achieve the effect you want more easily via (setq org-use-property-inheritance "^GPTEL_") Any reason you don't want to use this?
As an aside, not making these properties inheritable by default is intentional, see my comment about this in #141. |
…her code can reference them
c2ab967
to
74e2f3b
Compare
Fixed |
Well, unless you're claiming the whole |
But wait. The code where list was hardcoded before is actually a pcase-let. So one CAN'T easily put new property names into my constant without also changing that code. ( Which I did, I added GPTEL_TOPIC -- which doesn't make any sense, as TOPIC should always be inherited. So we'd actually need another defconst just for that destructure, or hardcode it anyways and just ADD the constant. Or just give up on this? Maybe the constant should be named something like |
@hrehfeld You're right, this function combines property names with separate logic for handling each corresponding property value. So adding or removing topics from the defconst won't be enough, you'll also have to provide the logic. I'm not sure it's worth writing and managing separate functions for handling each property at this point.
I'm not seeing the problem with this, at least as far as inheritance is concerned? |
I'm leaning towards closing this PR. Before I do that, I'd like to take a step back and reconsider the need for this. What do you want to be able to do with |
so other (potentially external) code can reference them.
e.g. I have org property inheritance disabled but want it enabled for gptel props:
becomes
GPTEL_BOUNDS is purposely not included, because it seems like only used file globally.