unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Bob Weiner <rsw@gnu.org>, emacs-devel@gnu.org
Subject: Re: [elpa] externals/hyperbole c501027 2/2: Fix set-buffer byte-compiler warnings; remove outdated references
Date: Tue, 11 May 2021 18:15:30 +0300	[thread overview]
Message-ID: <YJqfklYJKg7V0kK9@protected.localdomain> (raw)
In-Reply-To: <jwv4kfavgqn.fsf-monnier+emacs@gnu.org>

* Stefan Monnier <monnier@iro.umontreal.ca> [2021-05-10 17:01]:
> These two don't make much sense: `save-excursion` only saves the
> position of point in the current buffer, so
> 
>     (save-excursion (with-current-buffer FOO ...))
> 
> is useless in one of two ways:
> - FOO is already the current buffer, so `with-current-buffer`
>   (previously `set-buffer`) does nothing.
> - FOO is a different buffer, so the buffer-position saved&restored by
>   `save-excursion` is in a buffer that's not affected by `...`.

Thank you, I totally understood this one, though I am unrelated...


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




      parent reply	other threads:[~2021-05-11 15:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210510035708.29543.25002@vcs0.savannah.gnu.org>
     [not found] ` <20210510035709.E742920DFD@vcs0.savannah.gnu.org>
2021-05-10 13:59   ` [elpa] externals/hyperbole c501027 2/2: Fix set-buffer byte-compiler warnings; remove outdated references Stefan Monnier
2021-05-11  0:18     ` Robert Weiner
2021-05-11  1:25       ` Stefan Monnier
2021-05-11 15:15     ` Jean Louis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YJqfklYJKg7V0kK9@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rsw@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).