GNU bug report logs - #20737
25.0.50; doc of `process-file'

Previous Next

Package: emacs;

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

Date: Fri, 5 Jun 2015 05:27:02 UTC

Severity: minor

Tags: fixed

Found in version 25.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 20737 in the body.
You can then email your comments to 20737 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#20737; Package emacs. (Fri, 05 Jun 2015 05:27: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. (Fri, 05 Jun 2015 05:27:03 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
Subject: 25.0.50; doc of `process-file'
Date: Thu, 4 Jun 2015 22:25:47 -0700 (PDT)
The parameters are not described correctly.

This is the complete description/explanation of INFILE and BUFFER:

 File names in INFILE and BUFFER are handled normally, but file
 names in ARGS should be relative to `default-directory', as they
 are passed to the process verbatim.  (This is a difference to
 `call-process' which does not support file handlers for INFILE
 and BUFFER.)

What does that even mean?  One might deduce that INFILE, BUFFER, and
ARGS are lists that can contain file names (and perhaps other stuff),
but that's about all.  What their structure is or what they are for are
completely unknown.

And this is all that is said about parameter DISPLAY:

 Some file handlers might not support all variants, for example
 they might behave as if DISPLAY was nil, regardless of the actual
 value passed.

That tells you less than nothing.

This is really useless doc.  Please do something to document
`process-file' properly.


In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm <at> gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20737; Package emacs. (Sat, 30 Apr 2016 19:53:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 20737 <at> debbugs.gnu.org
Subject: Re: bug#20737: 25.0.50; doc of `process-file'
Date: Sat, 30 Apr 2016 21:52:55 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> The parameters are not described correctly.
>
> This is the complete description/explanation of INFILE and BUFFER:
>
>  File names in INFILE and BUFFER are handled normally, but file
>  names in ARGS should be relative to `default-directory', as they
>  are passed to the process verbatim.  (This is a difference to
>  `call-process' which does not support file handlers for INFILE
>  and BUFFER.)
>
> What does that even mean?  One might deduce that INFILE, BUFFER, and
> ARGS are lists that can contain file names (and perhaps other stuff),
> but that's about all.  What their structure is or what they are for are
> completely unknown.
>
> And this is all that is said about parameter DISPLAY:
>
>  Some file handlers might not support all variants, for example
>  they might behave as if DISPLAY was nil, regardless of the actual
>  value passed.
>
> That tells you less than nothing.
>
> This is really useless doc.  Please do something to document
> `process-file' properly.

`process-file' seems to be a shim over `call-process', but:

----
Similar to `call-process', but may invoke a file handler based on
`default-directory'.  The current working directory of the
subprocess is `default-directory'.
----

I think the rest of the doc string tries to say what's different in the
arguments between `process-file' and `call-process', but it kinda fails
at doing that.  Especially since ARGS and DISPLAY are just passed on to
`call-process' verbatim in the default case.

So somebody who knows what this function is meant to be doing (I've
never heard of it before now) should take another crack at writing a new
doc string.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20737; Package emacs. (Wed, 26 May 2021 23:42:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 20737 <at> debbugs.gnu.org
Subject: Re: bug#20737: 25.0.50; doc of `process-file'
Date: Thu, 27 May 2021 01:40:54 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> So somebody who knows what this function is meant to be doing (I've
> never heard of it before now) should take another crack at writing a new
> doc string.

This was fixed in

commit 2e8825d6c55409c15749b12dacc1f49f9c8783c7
Author:     Eli Zaretskii <eliz <at> gnu.org>
AuthorDate: Sat Dec 29 17:34:57 2018 +0200

and

commit 0b47d731c08d0d5d4ba4a0c31f9be1152fd8c2c8
Author:     Paul Eggert <eggert <at> cs.ucla.edu>
AuthorDate: Sun Nov 17 15:26:55 2019 -0800

and the doc string seems pretty clear to me now.

-- 
(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. (Wed, 26 May 2021 23:42:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 20737 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 26 May 2021 23:42: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, 24 Jun 2021 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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