[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Geiser-users] Feature request: preserve point in geiser-set-scheme

From: Jose A. Ortega Ruiz
Subject: Re: [Geiser-users] Feature request: preserve point in geiser-set-scheme
Date: Wed, 22 Nov 2017 04:04:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

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!

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."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]