emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling another major mode in a major mode body


From: Richard Stallman
Subject: Re: Calling another major mode in a major mode body
Date: Mon, 05 Dec 2022 17:37:07 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Yeah, in Emacs 30, probably :-) I used the advice technique/hack similar to 
tex-mode for bash-ts-mode.

Plsee fix that.  To make one part of Emacs put advice on another part
is asking for future development trouble.

The worst thing is that the trouble is likely to happen to some other
developer.

When your code puts advice on a function BAR, that means other code
that calls BAR will get behavior different from what the source code
of BAR says.  Someone else will debug a program that calls BAR and
tear per hair out trying to figure out why it does not do what ALL the
source code says it should do.

Please don't install code that advises other code.
If you've already done that, please fix it now.
Don't add it to the backlog of pitfalls waiting to be fixed.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]