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

buffer: Remove obsolete actions-on-return. #2773

Merged
merged 3 commits into from Feb 9, 2023
Merged

Conversation

aadcg
Copy link
Member

@aadcg aadcg commented Feb 7, 2023

The assignment of this action is a no-op since the actions for these sources are re-defined elsewhere.

Also, setting buffer-load as an action-on-return is not valid. See buffer-load* for the action that is valid.

Description

Minor clean up.

Developed in the context of PR #2772.

Discussion

Read the commit message for an explanation of the rationale.

Checklist:

Everything in this checklist is required for each PR. Please do not approve a PR that does not have all of these items.

  • I have pulled from master before submitting this PR
  • There are no merge conflicts.
  • I've added the new dependencies as:
    • ASDF dependencies,
    • Git submodules,
      cd /path/to/nyxt/checkout
      git submodule add https://gitlab.common-lisp.net/nyxt/py-configparser _build/py-configparser
    • and Guix dependencies.
  • My code follows the style guidelines for Common Lisp code. See:
  • I have performed a self-review of my own code.
  • My code has been reviewed by at least one peer. (The peer review to approve a PR counts. The reviewer must download and test the code.)
  • Documentation:
    • All my code has docstrings and :documentations written in the aforementioned style. (It's OK to skip the docstring for really trivial parts.)
    • I have updated the existing documentation to match my changes.
    • I have commented my code in hard-to-understand areas.
    • I have updated the changelog.lisp with my changes if it's anything user-facing (new features, important bug fix, compatibility breakage).
    • I have added a migration.lisp entry for all compatibility-breaking changes.
    • (If this changes something about the features showcased on Nyxt website) I have these changes described in the new/existing article at Nyxt website or will notify one of maintainters to do so.
  • Compilation and tests:
    • My changes generate no new warnings.
    • I have added tests that prove my fix is effective or that my feature works. (If possible.)
    • New and existing unit tests pass locally with my changes.

Copy link
Contributor

@aartaka aartaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, yes, these sources are used with custom actions on return in Nyxt code. But they may also be used in user config and extensions, in which case we'd better retain some meaningful action on return, even though we don't use it ourselves.

@aadcg aadcg force-pushed the minor-fix-actions-on-return branch from f76dc47 to 73350b9 Compare February 8, 2023 15:44
@aadcg
Copy link
Member Author

aadcg commented Feb 8, 2023

@aartaka If I understood you correctly, you're suggesting the new changes that I've pushed.

Copy link
Contributor

@aartaka aartaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't anticipate this turn of events, but it's a good refactoring in the end (゜◇゜)

@aadcg
Copy link
Member Author

aadcg commented Feb 8, 2023

Ok to merge @Ambrevar?

@Ambrevar
Copy link
Member

Ambrevar commented Feb 9, 2023

OK!

buffer-load as an action-on-return is not valid, since it takes a url as an
argument.
@aadcg aadcg force-pushed the minor-fix-actions-on-return branch from 73350b9 to 1194b86 Compare February 9, 2023 11:20
@aadcg aadcg merged commit 06b5a4f into master Feb 9, 2023
@aadcg aadcg deleted the minor-fix-actions-on-return branch February 9, 2023 11:21
@aadcg
Copy link
Member Author

aadcg commented Feb 9, 2023

Thanks!

@jmercouris
Copy link
Member

Thank you!

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

Successfully merging this pull request may close these issues.

None yet

4 participants