help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: save-excursion doesn't restore point with json-pretty-print


From: Eli Zaretskii
Subject: Re: save-excursion doesn't restore point with json-pretty-print
Date: Fri, 01 Feb 2019 20:55:29 +0200

> From: Tassilo Horn <tsdh@gnu.org>
> Cc: help-gnu-emacs@gnu.org
> Date: Fri, 01 Feb 2019 19:02:23 +0100
> 
> > json-read-from-string uses a temporary buffer anyway, so a couple of
> > trivial changes in json-pretty-print should do the trick.
> 
> Is this what you have in mind?  Seems to work well.

Yes.

> I'm just not sure if the save-excursion should be in
> `json-pretty-print' itself.  I'd always want to have it but maybe
> there are use-cases where it would be wrong.

Good question.  I don't know the answer either.



reply via email to

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