-
Notifications
You must be signed in to change notification settings - Fork 280
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
Replace old- with new-style advice #1819
Comments
Side note: if compatibility with Emacs-24.1 is considered important, it can be preserved (by depending on the |
I don't personally use Evil, so I haven't really tested my patch. Has someone given it a real test? |
I took a look back in August, but ran out of time and forgot to report why it could not be outright merged, sorry. It is mostly good, but broke tests relying on advices currently activated as a side-effect of Evil-mode being loaded, as the tests do not enable Is the right thing to enable/disable |
It is mostly good, but broke tests relying on advices currently activated as
a side-effect of Evil-mode being loaded, as the tests do not enable
`evil-mode`, only `evil-local-mode` on a per-buffer basis.
Ah... thanks. I had completely missed this distinction.
Indeed my patch didn't consider this possibility, and it will require
a bit more work to accommodate that use-case.
|
OK, I pushed to `scratch/evil` a new version of the patches:
- Improved removal of `evil-kg.el` (updated rules in Makefile
not to use `evil-pkg.el` any more and to build the file when needed).
- Updated removal of `defadvice` to better reproduce the
current behavior. The tests now give the same 1 error as with the
current head revision.
This includes a FIXME about the advice added to `show-paren-function`:
this advice is only enabled when `evil-mode` is enabled whereas it seems
that it should be attached to `evil-local-mode` like most others.
I preserved that behavior but I suspect it's actually a bug.
|
Ping? |
Pretty please? |
Ping? I just rebased the |
Fixed by #1685. |
Issue type
Further notes
I've come across the deprecation of old-style advice in the upcoming major Emacs release. Accomodating to this will require the following:
The text was updated successfully, but these errors were encountered: