GNU bug report logs -
#2035
23.0.60; doc string of dired-read-shell-command
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sun, 25 Jan 2009 03:30:02 UTC
Severity: minor
Tags: unreproducible
Done: Chong Yidong <cyd <at> stupidchicken.com>
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 2035 in the body.
You can then email your comments to 2035 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2035
; Package
emacs
.
(Sun, 25 Jan 2009 03:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 25 Jan 2009 03:30:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Doc string:
"Read a dired shell command prompting with PROMPT (using read-string).
ARG is the prefix arg and may be used to indicate in the prompt which
files are affected.
This is an extra function so that you can redefine it."
1. The part about the "prefix arg", at least, doesn't make sense. This
is not a command, and there is no reference in the code to
`current-prefix-arg'. The sentence is not clear to me, even ignoring
"prefix" - *how* does ARG indicate, in the prompt, which files are
affected?
2. Argument FILES is not described (should be uppercase).
3. It's not clear (to me) what the last sentence is supposed to mean.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-04 on
LENNART-69DE564 Windowing system distributor `Microsoft Corp.',
version 5.1.2600 configured using `configure --with-gcc (3.4)
--no-opt --cflags -Ic:/g/include -fno-crossjumping'
bug reassigned from package `emacs' to `emacs,documentation'.
Request was from
Juanma Barranquero <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 25 Jan 2009 12:10:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#2035
; Package
emacs,documentation
.
(Fri, 13 Feb 2009 11:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Fri, 13 Feb 2009 11:55:06 GMT)
Full text and
rfc822 format available.
Message #12 received at 2035 <at> emacsbugs.donarmstrong.com (full text, mbox):
> 1. The part about the "prefix arg", at least, doesn't make sense. This
> is not a command, and there is no reference in the code to
> `current-prefix-arg'. The sentence is not clear to me, even ignoring
> "prefix" - *how* does ARG indicate, in the prompt, which files are
> affected?
It makes somewhat more sense if you look at the original version in
dired-aux.el.
> 2. Argument FILES is not described (should be uppercase).
It is fixed in the dired-aux version :(
> 3. It's not clear (to me) what the last sentence is supposed to mean.
Is part of a comment in the original version.
All in all, I think the docstring should say: "This is an internal
function." and little more. The info in the docstring should have
stayed a comment IMHO.
Juanma
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#2035
; Package
emacs,documentation
.
(Fri, 13 Feb 2009 15:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Fri, 13 Feb 2009 15:15:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 2035 <at> emacsbugs.donarmstrong.com (full text, mbox):
> From: Juanma Barranquero Sent: Friday, February 13, 2009 3:49 AM
> > 1. The part about the "prefix arg", at least, doesn't make
> > sense. This is not a command, and there is no reference in the code to
> > `current-prefix-arg'. The sentence is not clear to me, even ignoring
> > "prefix" - *how* does ARG indicate, in the prompt, which files are
> > affected?
>
> It makes somewhat more sense if you look at the original version in
> dired-aux.el.
>
> > 2. Argument FILES is not described (should be uppercase).
>
> It is fixed in the dired-aux version :(
>
> > 3. It's not clear (to me) what the last sentence is
> > supposed to mean.
>
> Is part of a comment in the original version.
>
> All in all, I think the docstring should say: "This is an internal
> function." and little more. The info in the docstring should have
> stayed a comment IMHO.
It's not necessarily an internal function. It's a non-interactive function, but
there is no reason that other code can't also call it.
The doc string should explain what the function does, as always (but not how it
does it).
Severity set to `minor' from `normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 25 Feb 2009 08:55:05 GMT)
Full text and
rfc822 format available.
Added tag(s) unreproducible.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 13:53:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
2035 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 13:53:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#2035
; Package
emacs
.
(Mon, 11 Jul 2011 13:59:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 2035 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> "Read a dired shell command prompting with PROMPT (using read-string).
> ARG is the prefix arg and may be used to indicate in the prompt which
> files are affected.
> This is an extra function so that you can redefine it."
This has apparently already been fixed.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#2035
; Package
emacs
.
(Mon, 11 Jul 2011 15:26:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 2035 <at> debbugs.gnu.org (full text, mbox):
> This has apparently already been fixed.
No, it has not. The doc string has been changed, but the bug report still
applies. Please read it. What about the prefix argument? This is not a
command. How can it have a prefix argument? Etc.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 15:27:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#2035
; Package
emacs
.
(Mon, 11 Jul 2011 15:47:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 2035 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
>> This has apparently already been fixed.
>
> No, it has not. The doc string has been changed, but the bug report still
> applies. Please read it. What about the prefix argument? This is not a
> command. How can it have a prefix argument? Etc.
It is passed `current-prefix-arg' in the use cases, so I think that's
clear enough.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#2035
; Package
emacs
.
(Tue, 12 Jul 2011 02:57:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 2035 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> "Drew Adams" <drew.adams <at> oracle.com> writes:
>
>>> This has apparently already been fixed.
>>
>> No, it has not. The doc string has been changed, but the bug report still
>> applies. Please read it. What about the prefix argument? This is not a
>> command. How can it have a prefix argument? Etc.
>
> It is passed `current-prefix-arg' in the use cases, so I think that's
> clear enough.
I fixed the remaining doc issues; closing.
bug closed, send any further explanations to
2035 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jul 2011 02:57:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#2035
; Package
emacs
.
(Tue, 12 Jul 2011 13:54:01 GMT)
Full text and
rfc822 format available.
Message #42 received at 2035 <at> debbugs.gnu.org (full text, mbox):
> >>> This has apparently already been fixed.
> >>
> >> No, it has not. The doc string has been changed, but the
> >> bug report still applies. Please read it. What about the
> >> prefix argument? This is not a command. How can it have a
> >> prefix argument? Etc.
> >
> > It is passed `current-prefix-arg' in the use cases, so I
> > think that's clear enough.
>
> I fixed the remaining doc issues; closing.
Haven't yet seen your changes, Yidong, but the reply below to Lars apparently
did not make it to the thread - perhaps I forgot to use `Reply All'. I hope its
points were proactively addressed by your fix.
It is incorrect to speak here (at all) about "prefix arg" or
`current-prefix-arg'.
Thx.
> Sent: Monday, July 11, 2011 9:13 AM To: 'Lars Magne Ingebrigtsen'
> Subject: RE: 23.0.60; doc string of dired-read-shell-command
>
> > >> This has apparently already been fixed.
> > >
> > > No, it has not. The doc string has been changed, but the
> > > bug report still applies. Please read it. What about the
> > > prefix argument? This is not a command. How can it have a
> > > prefix argument? Etc.
> >
> > It is passed `current-prefix-arg' in the use cases, so I
> > think that's clear enough.
>
> Only a caller knows what it passes to `dired-read-shell-command'.
> The code for this function, and the doc string for this function,
> make no reference to `current-prefix-arg'.
>
> If the code makes no reference to `current-prefix-arg' and
> yet this function is always supposed to use
> `current-prefix-arg', then it should not be passed as an arg
> but should be hard-coded in the body.
>
> If, OTOH, we want the argument ARG to be able to be something
> other than the value of `current-prefix-arg', then we should
> keep that parameter. And if it is kept it needs to be
> documented. And it must not, in that case, be documented as
> the "prefix arg" or `current-prefix-arg' or any such thing.
> It must be documented in its own right: what is it for? What
> are its possible values?
>
> This should be obvious. This is the approach for any
> function. If we want always the same value, then don't pass
> it as a paramter. If we define a parameter then document it.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 10 Aug 2011 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.