It's interesting that the idea of learning influenced by emotional state goes way back. There is Talmudic reinterpretation of "But my wisdom remained with me" to "wisdom that I learned in anger stood with me". I'm not sure if there is epistemic truth to this, but it's an interesting thought, and I wouldn't be surprised if it's not totally wrong; the Talmudists studied pretty damn hard.
There are two confusing but potentially important papers in the Jan. 25 2013 Science on long-term memory (LTM) formation in fruit flies:
Pierre-Yves Placais & Thomas Preat. To favor survival under food shortage, the brain disables costly memory. 339:440-441.
Yukinori Hirano et al. Fasting launches CRTC to facilitate long-term memory formation in Drosophila. 339:443-446.
These papers categorize long-term memory formation along three axes.
The relationship between these is unclear, particularly as each of these three axes is claimed at various times to determine whether memory can be learned in a single training cycle (appetitive, fLTM, and/or ARM) or not (aversive, spLTM, and/or LTM). But these things appear to be likely, or at least to be reasonable hypotheses, if these pathways are conserved in humans:
I'd really appreciate it if somebody would do a literature review and a comparison of the pathways involved to those in humans, and summarize their findings.