unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/hyperbole da94aa592b 1/2: Fix global button creation to put button in the proper buffer
       [not found] ` <20220123205736.322F5C0DA31@vcs2.savannah.gnu.org>
@ 2022-01-23 21:31   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2022-01-23 21:31 UTC (permalink / raw)
  To: Bob Weiner; +Cc: emacs-devel

>          (save-excursion
> +	  (set-buffer but-buf)

AKA `with-current-buffer`.

>        (save-excursion
> +	(set-buffer but-buf)

Same here.

Well, it's not actually the same, but `with-current-buffer` is better
behaved (and marginally more efficient).


        Stefan




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-23 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <164297145557.5840.3638536969653841146@vcs2.savannah.gnu.org>
     [not found] ` <20220123205736.322F5C0DA31@vcs2.savannah.gnu.org>
2022-01-23 21:31   ` [elpa] externals/hyperbole da94aa592b 1/2: Fix global button creation to put button in the proper buffer Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).