[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] externals/hyperbole c501027 2/2: Fix set-buffer byte-compiler
From: |
Jean Louis |
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 |
User-agent: |
Mutt/2.0.6 (2021-03-06) |
* 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/