GNU bug report logs - #16802
@w for long option names

Previous Next

Package: coreutils;

Reported by: karl <at> freefriends.org (Karl Berry)

Date: Tue, 18 Feb 2014 23:59:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 16802 in the body.
You can then email your comments to 16802 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#16802; Package coreutils. (Tue, 18 Feb 2014 23:59:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to karl <at> freefriends.org (Karl Berry):
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 18 Feb 2014 23:59:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: karl <at> freefriends.org (Karl Berry)
To: bug-coreutils <at> gnu.org
Subject: @w for long option names
Date: Tue, 18 Feb 2014 23:57:29 GMT
In a couple places, coreutils.texi uses @w around (bare) long option
names.  These are the ones I noticed:

621:@item @w{@kbd{--strip-trailing-slashes}}
1268:The @w{@kbd{--target-directory}} (@option{-t}) option allows the @command{cp},
1312:operating on it.  The @w{@kbd{--strip-trailing-slashes}} option enables

I'm guess the point is to avoid line breaks at the internal hyphens
(there would/should never be line breaks at leading hyphens).  In which
case, a cleaner/more general approach would be

@allowcodebreaks false

Then there is no need for sprinkling @w throughout the source.
We added that in Texinfo 4.11, released 2007.

(It belatedly occurs to me that we should make @option, specifically,
always disallow line breaks at hyphens.)

karl




Information forwarded to bug-coreutils <at> gnu.org:
bug#16802; Package coreutils. (Wed, 19 Feb 2014 07:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 16802 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Karl Berry <karl <at> freefriends.org>, 16802 <at> debbugs.gnu.org
Subject: Re: bug#16802: @w for long option names
Date: Tue, 18 Feb 2014 23:20:16 -0800
[Message part 1 (text/plain, inline)]
Karl Berry wrote:
> Then there is no need for sprinkling @w throughout the source.

Something like the attached patch?  It gets rid of most @kbd instances, too.

> (It belatedly occurs to me that we should make @option, specifically,
> always disallow line breaks at hyphens.)

Yes, that sounds like a win.

[at-w.diff (text/plain, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#16802; Package coreutils. (Fri, 21 Feb 2014 01:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 16802 <at> debbugs.gnu.org (full text, mbox):

From: karl <at> freefriends.org (Karl Berry)
To: eggert <at> cs.ucla.edu
Cc: 16802 <at> debbugs.gnu.org
Subject: Re: bug#16802: @w for long option names
Date: Fri, 21 Feb 2014 01:23:50 GMT
    Something like the attached patch?  

Exactly.  Thanks.

    It gets rid of most @kbd instances, too.

I don't think @kbd should ever be used with option names.
(Aside from actual examples of command lines being typed as input. :)

karl




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Fri, 21 Feb 2014 02:27:02 GMT) Full text and rfc822 format available.

Notification sent to karl <at> freefriends.org (Karl Berry):
bug acknowledged by developer. (Fri, 21 Feb 2014 02:27:03 GMT) Full text and rfc822 format available.

Message #16 received at 16802-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Karl Berry <karl <at> freefriends.org>
Cc: 16802-done <at> debbugs.gnu.org
Subject: Re: bug#16802: @w for long option names
Date: Thu, 20 Feb 2014 18:26:05 -0800
OK, thanks, I installed it on savannah and am marking this as done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 21 Mar 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.