GNU bug report logs - #55984
26.3; Doc string of `chmod' / `set-file-modes'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 14 Jun 2022 21:37:02 UTC

Severity: minor

Tags: fixed

Found in version 26.3

Fixed in version 28.2

Done: Robert Pluim <rpluim <at> gmail.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 55984 in the body.
You can then email your comments to 55984 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-gnu-emacs <at> gnu.org:
bug#55984; Package emacs. (Tue, 14 Jun 2022 21:37: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 bug-gnu-emacs <at> gnu.org. (Tue, 14 Jun 2022 21:37:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Tue, 14 Jun 2022 21:36:37 +0000
Please consider mentioning in the doc string that the command prompts
for the file name and (then for) the modes.  The doc currently says how
the modes are read, but it doesn't say that the command reads the file
name.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.19044
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55984; Package emacs. (Wed, 15 Jun 2022 09:04:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 55984 <at> debbugs.gnu.org
Subject: Re: bug#55984: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Wed, 15 Jun 2022 11:03:32 +0200
>>>>> On Tue, 14 Jun 2022 21:36:37 +0000, Drew Adams <drew.adams <at> oracle.com> said:

    Drew> Please consider mentioning in the doc string that the command prompts
    Drew> for the file name and (then for) the modes.  The doc currently says how
    Drew> the modes are read, but it doesn't say that the command reads the file
    Drew> name.

Passive voice as well. How about the following for emacs-28


diff --git a/src/fileio.c b/src/fileio.c
index 7d392e0de7..a240216dea 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3510,8 +3510,9 @@ DEFUN ("set-file-modes", Fset_file_modes, Sset_file_modes, 2, 3,
 Only the 12 low bits of MODE are used.  If optional FLAG is `nofollow',
 do not follow FILENAME if it is a symbolic link.
 
-Interactively, mode bits are read by `read-file-modes', which accepts
-symbolic notation, like the `chmod' command from GNU Coreutils.  */)
+Interactively, prompts for FILENAME, and reads MODE with
+`read-file-modes', which accepts symbolic notation, like the `chmod'
+command from GNU Coreutils.  */)
   (Lisp_Object filename, Lisp_Object mode, Lisp_Object flag)
 {
   CHECK_FIXNUM (mode);


Robert
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55984; Package emacs. (Wed, 15 Jun 2022 12:21:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 55984 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#55984: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Wed, 15 Jun 2022 14:19:59 +0200
Robert Pluim <rpluim <at> gmail.com> writes:

> Passive voice as well. How about the following for emacs-28

Looks good to 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#55984; Package emacs. (Wed, 15 Jun 2022 12:34:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55984 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#55984: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Wed, 15 Jun 2022 14:32:43 +0200
tags 55984 fixed
close 55984 28.2
quit

>>>>> On Wed, 15 Jun 2022 14:19:59 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:

    Lars> Robert Pluim <rpluim <at> gmail.com> writes:
    >> Passive voice as well. How about the following for emacs-28

    Lars> Looks good to me.

Closing.
Committed as 32cff740e2




Added tag(s) fixed. Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 15 Jun 2022 12:34:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.2, send any further explanations to 55984 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 15 Jun 2022 12:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55984; Package emacs. (Wed, 15 Jun 2022 13:09:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 55984 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#55984: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Wed, 15 Jun 2022 16:08:38 +0300
> Cc: 55984 <at> debbugs.gnu.org
> From: Robert Pluim <rpluim <at> gmail.com>
> Date: Wed, 15 Jun 2022 11:03:32 +0200
> 
> Passive voice as well. How about the following for emacs-28
> 
> 
> diff --git a/src/fileio.c b/src/fileio.c
> index 7d392e0de7..a240216dea 100644
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -3510,8 +3510,9 @@ DEFUN ("set-file-modes", Fset_file_modes, Sset_file_modes, 2, 3,
>  Only the 12 low bits of MODE are used.  If optional FLAG is `nofollow',
>  do not follow FILENAME if it is a symbolic link.
>  
> -Interactively, mode bits are read by `read-file-modes', which accepts
> -symbolic notation, like the `chmod' command from GNU Coreutils.  */)
> +Interactively, prompts for FILENAME, and reads MODE with
> +`read-file-modes', which accepts symbolic notation, like the `chmod'
> +command from GNU Coreutils.  */)

"prompt" and "read", please, to be consistent with our preferred
style.

Otherwise OK, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55984; Package emacs. (Wed, 15 Jun 2022 13:20:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55984 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#55984: 26.3; Doc string of `chmod' / `set-file-modes'
Date: Wed, 15 Jun 2022 15:19:31 +0200
>>>>> On Wed, 15 Jun 2022 16:08:38 +0300, Eli Zaretskii <eliz <at> gnu.org> said:

    >> Cc: 55984 <at> debbugs.gnu.org
    >> From: Robert Pluim <rpluim <at> gmail.com>
    >> Date: Wed, 15 Jun 2022 11:03:32 +0200
    >> 
    >> Passive voice as well. How about the following for emacs-28
    >> 
    >> 
    >> diff --git a/src/fileio.c b/src/fileio.c
    >> index 7d392e0de7..a240216dea 100644
    >> --- a/src/fileio.c
    >> +++ b/src/fileio.c
    >> @@ -3510,8 +3510,9 @@ DEFUN ("set-file-modes", Fset_file_modes, Sset_file_modes, 2, 3,
    >> Only the 12 low bits of MODE are used.  If optional FLAG is `nofollow',
    >> do not follow FILENAME if it is a symbolic link.
    >> 
    >> -Interactively, mode bits are read by `read-file-modes', which accepts
    >> -symbolic notation, like the `chmod' command from GNU Coreutils.  */)
    >> +Interactively, prompts for FILENAME, and reads MODE with
    >> +`read-file-modes', which accepts symbolic notation, like the `chmod'
    >> +command from GNU Coreutils.  */)

    Eli> "prompt" and "read", please, to be consistent with our preferred
    Eli> style.

I said "prompts" because itʼs describing what it does, but OK, fixed.

Robert
-- 




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Jul 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 337 days ago.

Previous Next


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