Skip to content

Fix defadvice deprecation by replacing with modern advice-add system#138

Open
durantschoon wants to merge 1 commit intogabesoft:masterfrom
durantschoon:fix-defadvice-obsolete
Open

Fix defadvice deprecation by replacing with modern advice-add system#138
durantschoon wants to merge 1 commit intogabesoft:masterfrom
durantschoon:fix-defadvice-obsolete

Conversation

@durantschoon
Copy link
Copy Markdown

Summary

This PR addresses the defadvice deprecation warning in modern Emacs versions by replacing the deprecated advice system with the modern advice-add system.

Changes

  • Replace defadvice with advice-add for evil-repeat-keystrokes
  • Replace defadvice with advice-add for evil-repeat-motion
  • Replace defadvice with advice-add for keyboard-quit
  • Replace ad-remove-advice with advice-remove
  • Add wrapper functions for modern advice system compatibility

Testing

  • Byte compilation passes without errors
  • Maintains backward compatibility with existing functionality
  • No breaking changes to the public API

Benefits

  • Eliminates deprecation warnings in modern Emacs versions
  • Uses the recommended modern advice system
  • Improves compatibility with future Emacs releases

- Replace defadvice with advice-add for evil-repeat-keystrokes
- Replace defadvice with advice-add for evil-repeat-motion
- Replace defadvice with advice-add for keyboard-quit
- Replace ad-remove-advice with advice-remove
- Add wrapper functions for modern advice system compatibility
- This addresses the deprecation warning in modern Emacs versions
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.

1 participant