Skip to content
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

org-roam-property-* code duplication removed #2217

Closed
1 task done
clanghans opened this issue Jun 9, 2022 · 5 comments
Closed
1 task done

org-roam-property-* code duplication removed #2217

clanghans opened this issue Jun 9, 2022 · 5 comments

Comments

@clanghans
Copy link
Contributor

Brief Abstract

Named functions in the headline have code duplication within their deprecated counterparts e.g. org-roam-add-property.

Long Description

I was stumbling upon these functions yesterday and was really confused by the code duplication.

Proposed Implementation (if any)

the deprecated functions should call the correct functions.

Please check the following:

  • No similar feature requests
@clanghans
Copy link
Contributor Author

clanghans commented Jun 9, 2022

provided PR.
Feedback is appreciated

jethrokuan pushed a commit that referenced this issue Jun 11, 2022
Co-authored-by: Chris Langhans <chris@langhans-coding.de>
@jethrokuan
Copy link
Member

looks good. The only reason there are 2 versions of it is because I think some people had been using these functions in their own config, and the function arguments are flipped so there's no way to remove it cleanly without breaking their configs.

@clanghans
Copy link
Contributor Author

Was assuming something like this.

Is there a way to mark functions as deprecated in elisp?

@jethrokuan
Copy link
Member

yeah using define-obsolete-function-alias, or just the primitive make-obsolete

lld2001 pushed a commit to lld2001/org-roam that referenced this issue Jun 28, 2022
@jethrokuan
Copy link
Member

Closed with #2218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants