Skip to content

asy-mode.el has a warning in Emacs30 about defadvice being obsolete #558

@shenlebantongying

Description

@shenlebantongying

In Emacs30, loading this mode will bring up this message about defadvice being obsolete.

../../opt/homebrew/share/emacs/site-lisp/asymptote/asy-mode.el: Warning: ‘defadvice’ is an obsolete macro (as of 30.1); use ‘advice-add’ or ‘define-advice’ [5 times]

It doesn't causes any problem except a warning on startup, so it is not urgent.


Edit:

I tried to fix it, but they all related to a mode that I don't use -> two-mode-mode

There is a dedicated page about the migration.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Porting-Old-Advice.html


Edit2:

In fact, there is no canonical source for the two-mode-mode on internet anymore. Maybe deleting them are for better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions