I have a bunch of macros that override the basic functions for some standard keys. For example, I have
MyEnd which chops off any whitespace on the end of the file. So far so good.
When in the DIFF editor, pressing END gives me the "currently not allowed in Diff mode" error because it doesn't know how to handle that command. I can work around it by editing diffedit.e as per
this post by re-remapping the command like this (2nd line).
"end-line" =>diff_end_line,
"MyEnd" =>diff_end_line,
That works OK, but it I'd prefer to keep the file in it's original condition. Is there a way to either have a diff-mode key binding in keydefs.e, or alternatively is there some code I can put in MyEnd that would fix this? For the moment, I'm planning to just bang in the aliases I need to handle, but it would be nice to know if we can make it work.