-
Notifications
You must be signed in to change notification settings - Fork 166
fix: Deprecated events-buffer-scrollback-size #224
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
Conversation
|
Edit: Double checked in the |
|
We should probably maintain backwards compat since |
|
@ethan-leba I actually tried that, but it ended up becoming super difficult. However, even if we had a working condition, conditionally choosing the keyword to use is really beyond my elisp knowledge. If I had to do backwards compatibility, I would try to get the Finally, perhaps a hot take, but in my opinion, people can pin their version if they want backwards compatibility. |
|
So it is possible to get the As such, I'm not comfortable relying on Do you have any idea how to check if the |
|
@ethan-leba Pushed changes for backwards compatibility based on inspecting the slots via I haven't verified that this works on emacs installations that don't have When it comes to |
|
I think I was mistaken actually -- jsonrpc appears to be an ELPA package, not builtin so I think the original solution should work (d47c7c6)? https://elpa.gnu.org/packages/jsonrpc.html Sorry for the confusion! Anyways, here's a good way to get the slots on a class: |
|
@ethan-leba Actually, If I recall, |
|
Oh interesting - regardless, I think the original solution should still be fine, the main concern would be if jsonrpc was tied to the version of emacs which it's not since the ELPA version is available as well (which is about the only type of backwards compatibility anyone cares about in Emacs, really..) |
|
So, do you prefer to revert the backwards compatibility I added (I could change the slot checking to your code, since it's much cleaner), or keep the backwards compatibility, since I already wrote it? |
|
@zerolfx is a retired maintainer, so we'd probably want @emil-vdw's or @rakotomandimby's opinion. In the meantime, I've simplified the slot checking to the following: (defun copilot--slot-exists-p (slot-list slot-name)
"Return t if SLOT-NAME exists in SLOT-LIST, nil otherwise."
(cl-some (lambda (slot) (eq slot-name (cl--slot-descriptor-name slot))) slot-list)) |
I also do prefer the simplicity of making this (backwards incompatible) change. I don't see any major reason to maintain backwards compatibility. In any event, |
|
@emil-vdw @ethan-leba I reverted back to d47c7c6, keeping the history. If you ever decide you want backwards compatibility, you can pick it up from d00ba0d. Feel free to merge. |
emil-vdw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @AlexanderArvidsson, thanks for the fix!
Update jsonrpc dependency and remove deprecated calls
|
Hello! Thank you so much for your work on this emacs package! The |
|
@xmatos-so Personally, I agree with you, and I don't think that the backward compatibility I had made the code too complex. Since |
)" This reverts commit 09c6005.
Deprecation was introduced in
jsonrpc 1.0.22in this commit.This PR
bumps required version tonow uses recommended1.0.22and:events-buffer-config.It's backwards compatible by checking for existence of
-events-buffer-configslot onjsonrpc-process-connection.