Most flashlights have a spring at the rear of the light for the negative end of the battery/cell. Some also have a spring at the positive end, near the head of the light. Still, some lights have what’s called a ‘reverse polarity protection’ setup up that will not allow flat top cells to make the negative (on the battery/cell) connection when placed inside the light backwards, due to some raised protrusions on either side of the positive pad. This keeps the flat top cell from damaging the light.
If your light has springs at both the positive end and the negative end of the light, you can use flat top cells, which is how the manufacturers (Sony, Panasonic, LG, Samsung and Sanyo ship them from their factories) make them.
If you need a button top battery because you have a light that has no forward spring and does have the RPP setup, you can find 3rd party vendors adding button tops to the above cells for a buck, or two, more.
Your Emisar D4 has spring contacts at both ends and will accept flat top cells.
Look to the Sony VTC 5a high current cells for your D4. I have both the D4 and the D1S.
Chris