After I overrode a block template for a primary links, block-edit-link doesn't show anymore...? I just created block-menu-primary-links.tpl.php file in the root of my theme, in order to strip off some default structures I have for other blocks, but now that I did that, block-edit-link which was displaying itself by default on hover, doesn't appear anymore. It's not that I want it to back, but I just wonder why did it go away and how can I control it? 

UPDATE:

Here is what I have in my block-menu-primary-links.tpl.php:

&lt;div id="block-menu-primary-links"&gt;
    &lt;?php echo $block-&gt;content; ?&gt;
&lt;/div&gt;


When I inspect html structure after it is rendered I see that contextual links are in there, but hidden and obviously block has lost something that made the logic tick.
Ok, tracked down the reason - every block requires to have a className of block:

&lt;div id="block-menu-primary-links" class="block"&gt;
    &lt;?php echo $block-&gt;content; ?&gt;
&lt;/div&gt;


Once I added this, contextual links regained the functionality. Still not sure where it comes from though, or if it's the only thing sufficient in all cases.