GNU bug report logs -
#49373
28.0.50; [PATCH] Use 'remember-buffer' in remember.el doc strings
Previous Next
Reported by: Gabriel <gabriel376 <at> hotmail.com>
Date: Sun, 4 Jul 2021 05:19:02 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.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 49373 in the body.
You can then email your comments to 49373 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#49373
; Package
emacs
.
(Sun, 04 Jul 2021 05:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gabriel <gabriel376 <at> hotmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 04 Jul 2021 05:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This patch replaces the hard coded '*Remember*' string with
'remember-buffer' in all doc strings occurrences in remember.el.
[0001-Use-remember-buffer-in-remember.el-doc-strings.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49373
; Package
emacs
.
(Sun, 04 Jul 2021 06:03:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 49373 <at> debbugs.gnu.org (full text, mbox):
> From: Gabriel <gabriel376 <at> hotmail.com>
> Date: Sun, 04 Jul 2021 02:15:14 -0300
>
> This patch replaces the hard coded '*Remember*' string with
> 'remember-buffer' in all doc strings occurrences in remember.el.
remember-buffer is an internal variable, so exposing it in the doc
strings of public functions, let alone commands, is not necessarily
TRT?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49373
; Package
emacs
.
(Sun, 04 Jul 2021 15:26:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Gabriel <gabriel376 <at> hotmail.com>
>> Date: Sun, 04 Jul 2021 02:15:14 -0300
>>
>> This patch replaces the hard coded '*Remember*' string with
>> 'remember-buffer' in all doc strings occurrences in remember.el.
>
> remember-buffer is an internal variable, so exposing it in the doc
> strings of public functions, let alone commands, is not necessarily
> TRT?
Hi Eli,
Good catch! I didn't notice that 'remember-buffer' is a defvar. Indeed
it does not make sense to refer to an internal variable in the doc
string of public functions.
Perhaps the 'remember-buffer' could be changed to a defcustom?
By the way, the 'remember-initial-contents' seems to be another
candidate for a defcustom, but I am not sure if I really understood its
use case. It's an internal variable, with a default value of nil, that
is not set anywhere and reset to nil on every call of 'remember'. If we
set a value and remove the reset inside 'remember', it works as
described by the name and by the doc string: "Initial contents to place
into *Remember* buffer.".
If the maintainers decide to not change any defvar to defcustom, feel
free to close this bug report.
Thank you,
Gabriel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49373
; Package
emacs
.
(Sun, 04 Jul 2021 16:38:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 49373 <at> debbugs.gnu.org (full text, mbox):
> From: Gabriel <gabriel376 <at> hotmail.com>
> Date: Sun, 04 Jul 2021 12:21:42 -0300
>
> > remember-buffer is an internal variable, so exposing it in the doc
> > strings of public functions, let alone commands, is not necessarily
> > TRT?
>
> Hi Eli,
>
> Good catch! I didn't notice that 'remember-buffer' is a defvar. Indeed
> it does not make sense to refer to an internal variable in the doc
> string of public functions.
>
> Perhaps the 'remember-buffer' could be changed to a defcustom?
I won't object, if that would help in some use cases.
Lars, WDYT?
> By the way, the 'remember-initial-contents' seems to be another
> candidate for a defcustom, but I am not sure if I really understood its
> use case. It's an internal variable, with a default value of nil, that
> is not set anywhere and reset to nil on every call of 'remember'. If we
> set a value and remove the reset inside 'remember', it works as
> described by the name and by the doc string: "Initial contents to place
> into *Remember* buffer.".
Same response here: would that be useful enough?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49373
; Package
emacs
.
(Mon, 05 Jul 2021 13:22:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 49373 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Perhaps the 'remember-buffer' could be changed to a defcustom?
>
> I won't object, if that would help in some use cases.
>
> Lars, WDYT?
Sure; fine by me.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49373
; Package
emacs
.
(Mon, 19 Jul 2021 15:49:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 49373 <at> debbugs.gnu.org (full text, mbox):
Gabriel <gabriel376 <at> hotmail.com> writes:
> This patch replaces the hard coded '*Remember*' string with
> 'remember-buffer' in all doc strings occurrences in remember.el.
Thanks; applied to Emacs 28 (and I also made remember-buffer into a
defcustom).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 28.1, send any further explanations to
49373 <at> debbugs.gnu.org and Gabriel <gabriel376 <at> hotmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 19 Jul 2021 15:49:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 17 Aug 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.