add customization variable whole-line-or-region-visual-p (defaults to nil, the original behaviour)
if whole-line-or-region-visual-p is non-nil, then in the functions whole-line-or-region-wrap-region-kill, whole-line-or-region-wrap-beg-end, whole-line-or-region-wrap-modified-region use beginning-of-visual-line rather than line-beginning-position.
whole-line-or-region-visual-p
(defaults to nil, the original behaviour)whole-line-or-region-visual-p
is non-nil, then in the functionswhole-line-or-region-wrap-region-kill
,whole-line-or-region-wrap-beg-end
,whole-line-or-region-wrap-modified-region
usebeginning-of-visual-line
rather thanline-beginning-position
.