geiser-users
[Top][All Lists]
Advanced

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

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


From: Christopher Howard
Subject: Re: [Geiser-users] Feature request: preserve point in geiser-set-scheme
Date: Tue, 21 Nov 2017 17:47:21 -0900

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 patch my own tree? Right now I'm simply defining the new
function from geiser-mode-hook. I suspect it is due to some nuance of
emacs 24 vs 25 and 26.

-- 
https://worldenglishbible.org/

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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