I'm looking for a procedure to make the same thing I usually do manually in Gimp:
I've already made great researches in the Procedure Browser but I couldn't find anything.
Finally found the Procedures:
(gimp-edit-copy layer)
(define floating-sel (car (gimp-edit-paste mask TRUE)))
(gimp-floating-sel-anchor floating-sel)