It is mildly irritating that ctrl-w means “paste” in emacs, but it means “close window” in virtually any other application, or in Firefox, “close tab.” If I’m editing text in firefox (say, a wiki page or a blog post) I have tendency to type “ctrl-w” to paste text.
Bam, the tab closes, along with all my edits.
Luckily my friend Bill Richardson taught me to type “shift-ctrl-t.” In Firefox this puts the tab you just had open back, along with all the text in the fields just as you had left them.
Thank you Bill!
If you didn’t have any other tabs open, or you’re using another app (like, say, evolution) you’re out of luck.


Undo close tab is one my most frequently used commands in firefox… good to know the shortcut!
as for editing, that’s why i like vi: no silly ctrl key.
With vi keybindings, ctrl-w is delete-word, and deletes the word just behind the cursor. Imagine becoming accustomed to that, and then trying to adjust to applications overriding it to close window/tab. Argh!