GNU bug report logs -
#30001
27.0.50; Outdated info on save-excursion in (info "(cl) Modify Macros")
Previous Next
Reported by: Xu Chunyang <mail <at> xuchunyang.me>
Date: Sat, 6 Jan 2018 05:31:01 UTC
Severity: normal
Found in version 27.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30001 in the body.
You can then email your comments to 30001 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30001
; Package
emacs
.
(Sat, 06 Jan 2018 05:31:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Xu Chunyang <mail <at> xuchunyang.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 06 Jan 2018 05:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
'C-h S cl-letf' or (info "(cl) Modify Macros") has the following:
Note that `cl-letf' on `(point)' is not quite like a
`save-excursion', as the latter effectively saves a marker which
tracks insertions and deletions in the buffer.
but 'save-excursion' is no longer saving marker since Emacs 25.1
according to 'C-h f save-excursion'.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30001
; Package
emacs
.
(Sat, 06 Jan 2018 09:11:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 30001 <at> debbugs.gnu.org (full text, mbox):
> From: Xu Chunyang <mail <at> xuchunyang.me>
> Date: Sat, 06 Jan 2018 13:29:57 +0800
>
> 'C-h S cl-letf' or (info "(cl) Modify Macros") has the following:
>
> Note that `cl-letf' on `(point)' is not quite like a
> `save-excursion', as the latter effectively saves a marker which
> tracks insertions and deletions in the buffer.
>
> but 'save-excursion' is no longer saving marker since Emacs 25.1
> according to 'C-h f save-excursion'.
save-excursion doesn't save the _mark_, but it still saves a _marker_
that tracks point, as opposed to just the value of point at the moment
of the call.
Do you have a practical use case where the documentation is incorrect?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30001
; Package
emacs
.
(Sat, 06 Jan 2018 12:13:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 30001 <at> debbugs.gnu.org (full text, mbox):
On Sat, 06 Jan 2018 11:10:00 +0200 Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Xu Chunyang <mail <at> xuchunyang.me>
>> Date: Sat, 06 Jan 2018 13:29:57 +0800
>>
>> 'C-h S cl-letf' or (info "(cl) Modify Macros") has the following:
>>
>> Note that `cl-letf' on `(point)' is not quite like a
>> `save-excursion', as the latter effectively saves a marker which
>> tracks insertions and deletions in the buffer.
>>
>> but 'save-excursion' is no longer saving marker since Emacs 25.1
>> according to 'C-h f save-excursion'.
>
> save-excursion doesn't save the _mark_, but it still saves a _marker_
> that tracks point, as opposed to just the value of point at the moment
> of the call.
It looks like the doc string of save-excursion contains a few typos:
Before Emacs 25.1, ‘save-excursion’ used to save the mark state.
To save the marker state as well as the point and buffer, use
^^^^^^ ^^^ ^^^^^^
‘save-mark-and-excursion’.
Shouldn't that be: "To save the mark state as well as point and the
buffer"?
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30001
; Package
emacs
.
(Sat, 06 Jan 2018 15:17:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 30001 <at> debbugs.gnu.org (full text, mbox):
> From: Stephen Berman <stephen.berman <at> gmx.net>
> Cc: Xu Chunyang <mail <at> xuchunyang.me>, 30001 <at> debbugs.gnu.org
> Date: Sat, 06 Jan 2018 13:12:37 +0100
>
> Before Emacs 25.1, ‘save-excursion’ used to save the mark state.
> To save the marker state as well as the point and buffer, use
> ^^^^^^ ^^^ ^^^^^^
> ‘save-mark-and-excursion’.
>
> Shouldn't that be: "To save the mark state as well as point and the
> buffer"?
Of course. Thanks, fixed.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 06 Jan 2018 15:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Xu Chunyang <mail <at> xuchunyang.me>
:
bug acknowledged by developer.
(Sat, 06 Jan 2018 15:18:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 30001-done <at> debbugs.gnu.org (full text, mbox):
> From: Xu Chunyang <mail <at> xuchunyang.me>
> Date: Sat, 06 Jan 2018 20:31:12 +0800
>
> > save-excursion doesn't save the _mark_, but it still saves a _marker_
> > that tracks point, as opposed to just the value of point at the moment
> > of the call.
>
> I see. Please close the bug report since it is simply my
> misunderstanding. Thanks.
Done.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 04 Feb 2018 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 216 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.