Stefan Guath writes: > TO REPRODUCE BUG: > * emacs -Q > * Create two buffers (C-x b) with the following contents: > foo.el: "idris0 idris1" > bar.el: "ideal0 ideal1" > * Go to end of foo.el, write "id" and execute dabbrev-completion (C-M-/) > > EXPECTED RESULT > "id" should complete to "idris". Hi, sorry it took so long for someone to look at this. I believe the attached patch fixes it. The problem seems to have been switching dabbrev.el over to using lexical scoping. It was previously using let* to temporarily override a couple of global variables, which works with dynamic scoping, but not lexical.