Just a small note about an incompatibility with Emacs 27.X and lower versions with the method svg-lib-button--mouse-press. It will throw an error when invoked due to a method parameter count mismatch.
It uses methods don't exist until Emacs 28.X (e.g. minibufferp with the additional live parameter and abort-minibuffers). I patched the method when in a lower Emacs version to only execute the hook callback when not in a minibuffer using the minibufferp method available. There is likely a better solution I am sure, but just wanted to surface this issue in case anyone else runs across it.
NOTE: - A dirtier solution for lower Emacs version that would technically accomplish the same thing, more or less (i.e. it doesn't work for minibuffers from multiple recursive edits ... though that edge case is probably non-existent for the use case of the library):
Just a small note about an incompatibility with Emacs 27.X and lower versions with the method
svg-lib-button--mouse-press
. It will throw an error when invoked due to a method parameter count mismatch.It uses methods don't exist until Emacs 28.X (e.g.
minibufferp
with the additionallive
parameter andabort-minibuffers
). I patched the method when in a lower Emacs version to only execute the hook callback when not in a minibuffer using theminibufferp
method available. There is likely a better solution I am sure, but just wanted to surface this issue in case anyone else runs across it.NOTE: - A dirtier solution for lower Emacs version that would technically accomplish the same thing, more or less (i.e. it doesn't work for minibuffers from multiple recursive edits ... though that edge case is probably non-existent for the use case of the library):
Though I do wonder if this block could be simplified:
Any who, I digress.
I hope this bug report helps.
Fantastic work, as always, and great library @rougier ! Thank you so much :)