One could comment the "very long command" with # and it would appear in the history... no hacks.
(one of the readline features i rediscover every three months or so and promptly forget)
$if lisp
set comment-begin ;
M-;: insert-comment
$endif