GNU bug report logs -
#40948
26.3; Docstring of substitute-env-vars
Previous Next
Reported by: Marcus Harnisch <marcus.harnisch <at> gmx.net>
Date: Tue, 28 Apr 2020 21:01:02 UTC
Severity: minor
Tags: fixed
Found in version 26.3
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 40948 in the body.
You can then email your comments to 40948 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#40948
; Package
emacs
.
(Tue, 28 Apr 2020 21:01:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marcus Harnisch <marcus.harnisch <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 28 Apr 2020 21:01:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
With commit ee041f2d07b6ed485dc34c115588f973f046c9d4, changes to the
parameters of `substitute-env-vars' were introduced and its docstring
changed. While the optional parameter is named WHEN-UNDEFINED, the
docstring says WHEN-DEFINED. It would appear that the dosctring is
right, but I'll leave that decision to the experts.
Thanks,
Marcus
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40948
; Package
emacs
.
(Wed, 29 Apr 2020 11:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 40948 <at> debbugs.gnu.org (full text, mbox):
> From: Marcus Harnisch <marcus.harnisch <at> gmx.net>
> Date: Tue, 28 Apr 2020 22:22:52 +0200
>
> With commit ee041f2d07b6ed485dc34c115588f973f046c9d4, changes to the
> parameters of `substitute-env-vars' were introduced and its docstring
> changed. While the optional parameter is named WHEN-UNDEFINED, the
> docstring says WHEN-DEFINED. It would appear that the dosctring is
> right, but I'll leave that decision to the experts.
I modified the doc string to match the argument name. (I'm not sure
how to judge which one is correct, because IMO neither WHEN-DEFINED
nor WHEN-UNDEFINED is correct. I would call that argument
HANDLE-UNDEFINED or something to that effect.)
Also note that there's an inconsistency in how the value of this
variable is used: if it's a function, then the return value of nil
means leave the variable reference unchanged, but if it is not a
function, the value of nil means to replace the reference with an
empty string, and a non-nil value means leave it unchanged.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40948
; Package
emacs
.
(Thu, 28 Jan 2021 06:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 40948 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I modified the doc string to match the argument name. (I'm not sure
> how to judge which one is correct, because IMO neither WHEN-DEFINED
> nor WHEN-UNDEFINED is correct. I would call that argument
> HANDLE-UNDEFINED or something to that effect.)
>
> Also note that there's an inconsistency in how the value of this
> variable is used: if it's a function, then the return value of nil
> means leave the variable reference unchanged, but if it is not a
> function, the value of nil means to replace the reference with an
> empty string, and a non-nil value means leave it unchanged.
The interface seems odd indeed, but your changes to the doc string has
now made it match what it's doing (I think), so there doesn't seem to be
anything more to be done in this bug report, and I'm closing it.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Jan 2021 06:40:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
40948 <at> debbugs.gnu.org and Marcus Harnisch <marcus.harnisch <at> gmx.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Jan 2021 06:40: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
.
(Thu, 25 Feb 2021 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.