Jonathan Lamothe 9 months ago • Jonathan Lamothe 9 months ago • The seemingly canonical way of detecting whether the C-u modifier was used on an interactive function call (when an actual numerical argument wasn't provided) in #elisp feels... icky. #emacs #emacs #elisp Detected languages Raw content Share via ...
in reply to Jonathan Lamothe Alessio Vanni in reply to Jonathan Lamothe • 9 months ago • • To be fair C-u *is* a numerical argument so you're not really meant to differentiate (it means the number 4). 😅 Detected languages Raw content Share via ...
in reply to Alessio Vanni Jonathan Lamothe in reply to Alessio Vanni • 9 months ago • @Alessio Vanni Yeah, it's just very magic number-ey.Ah well, such is the way it is with legacy code sometimes. No way to change it without breaking about a billion other things. @Alessio Vanni Detected languages Raw content Share via ...
Alessio Vanni
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Alessio Vanni • •@Alessio Vanni Yeah, it's just very magic number-ey.
Ah well, such is the way it is with legacy code sometimes. No way to change it without breaking about a billion other things.