Ihor Radchenko <yanta...@posteo.net> writes:

> I am wondering if there is some canonical way to handle similar scenarios
> recommended for major modes.
>
> Any suggestions?

Why not, as in similar situations, define a `kill-line-function'
variable with default value `kill-line-default-function' which is a
function (more or less our current `kill-line').

Any mode that wants to modify the behavior would `add-function' on that
variable binding.  We would have one single place where the thing is
controlled, while the behavior can still be modified by future modes.

`add-function' has priorities that can be used to specify which mode
should win in case of conflicts.


Michael.

Reply via email to