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

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

bug#40341: [PATCH] * doc/lispref/os.texi (Session Management): make exam


From: Eli Zaretskii
Subject: bug#40341: [PATCH] * doc/lispref/os.texi (Session Management): make example homoiconic
Date: Tue, 14 Apr 2020 20:54:30 +0300

> From: Noam Postavsky <npostavs@gmail.com>
> Date: Tue, 14 Apr 2020 09:52:56 -0400
> Cc: 40341@debbugs.gnu.org
> 
> > +    (insert (format "%S" '(save-current-buffer
> > +                           (switch-to-buffer "*scratch*")
> > +                           (insert "I am restored"))))
> > +    nil)
> 
> Shouldn't this example also be using set-buffer instead of
> switch-to-buffer?  (Or rather, with-current-buffer instead of
> save-current-buffer + switch-to-buffer.)

It wouldn't hurt to put our money where our mouth is, I agree.





reply via email to

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