ispell.el,flyspell.el: Preserve session localwords when switching back buffers.
authorAgustín Martín <agustin.martin@hispalinux.es>
Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)
committerAgustín Martín <agustin.martin@hispalinux.es>
Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)
commitda00640ab78cc69f9321d7bc6062c3119493f6a7
tree1e03c4ae347e3c2987fc6d665de7d8e5a69c1111
parentca0294bbd827c08fd60d32e63c8e133342b6551d
ispell.el,flyspell.el: Preserve session localwords when switching back buffers.

Once a word is declared valid for a session and a buffer it should
stay valid for that buffer regardless buffer switches unless ispell
process is explicitly killed or dictionary changed for that buffer.

However, it is currently lost when we switch to a different buffer
that triggers a new ispell process and then switch back to the
original buffer (triggering a  new ispell restart).

These changes try to keep buffer session localwords accepted in above
case.
lisp/ChangeLog
lisp/textmodes/flyspell.el
lisp/textmodes/ispell.el