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

Improvements #22

Closed
wants to merge 2 commits into from
Closed

Improvements #22

wants to merge 2 commits into from

Conversation

phikal
Copy link
Contributor

@phikal phikal commented Feb 24, 2023

Here are some suggestions related to #21. Feel free to change anything if you don't like it, the patch is intentionally opinionated.

* bqn-mode-map.el: Define insertion commands using defalias instead of
a local macro.
(bqn-mode-map--command-name): Use "bqn-" as the command prefix.
(bqn-mode-map--kbd): Remove function, as it is not needed if the
minimum version for bqn-mode is Emacs 26.
(bqn-mode-map--make-base): Use `pcase-dolist'
(bqn-mode-map-prefix): Improve quoting.
@AndersonTorres
Copy link
Member

@phikal I have included only the first file. The second throws syntax errors I am trying to figure out.

@phikal
Copy link
Contributor Author

phikal commented Mar 7, 2023

Interestingly it did not complain on my end (Emacs 30), but I have reinspected the commit and changed a few things.

* bqn-symbols-doc.el (subr-x): Remove dependency.
(bqn-symbols-doc--symbol-doc-table): Have the hash table generated at
compile time instead of writing out the printed representation.
(bqn-symbols-doc--symbols): Replace 'hash-table-keys' with 'maphash'.
(bqn-symbols-doc--get-doc): Replace legacy 'when-let' with 'and'.
@AndersonTorres
Copy link
Member

P.S.: I took some liberty to use your patches. I will try to add authorship info as soon as possible.

@AndersonTorres
Copy link
Member

I will close this, given that I "rebased" it onto the other PR.

AndersonTorres added a commit that referenced this pull request Mar 11, 2023
AndersonTorres added a commit that referenced this pull request Mar 11, 2023
As taken from #22

Co-authored by: Philip Kaludercic <[email protected]>
AndersonTorres added a commit that referenced this pull request Mar 11, 2023
As taken from #22

Co-authored-by: Philip Kaludercic <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants