On Tue, Nov 21 2017, Christopher Howard wrote: > On Wed, 2017-11-22 at 02:44 +0100, Jose A. Ortega Ruiz wrote: >> >> (defun geiser-set-scheme () >> "Associates current buffer with a given Scheme implementation." >> (save-excursion >> (interactive) >> (geiser-syntax--remove-kws) >> (let ((impl (geiser-impl--read-impl))) >> (geiser-impl--set-buffer-implementation impl) >> (geiser-repl--set-up-repl impl) >> (geiser-syntax--add-kws) >> (geiser-syntax--fontify)))) >> >> the only thing i've changed is wrapping the function's body with >> `save-excursion`... if that didn't work, i'd be kind of surprised! >> >> cheers, >> jao > > Hi, that worked for me, except I first had to swap the save-excursion > line with the interactive line. Otherwise I get an error message when > trying to call the function. Thanks! > > Is this patch something you'll put into geiser master branch, or should
i just pushed it there... it's harmless for other versions... thanks! cheers, jao -- A student came to the master and asked, for the master was one of them who knew such things: "Does Emacs have the Buddha nature?" The master contemplated this for some time, and answered: "I don't see why not, it has about everything else."