Michael Heerdegen <michael_heerde...@web.de> writes: >> What I was thinking about is some way for command remapping to: >> >> 1. remap overriding minor modes >> 2. be able to access commands (possible remapped) that are shadowed by >> current remapping >> >> Maybe what I want is advice flexibility for keymaps. (not sure) > > What would one be able to do using that imagined mechanism that one > cannot do with `add-function'?
My main problem with the idea of kill-line-function is that I do not fully understand how it can work in all cases. Specifically, imagine what happens when visual-line-mode is activated _after_ Org mode is activated. How can Org mode make sure that kill-visual-line does not unconditionally override Org bindings? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>