unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52334: 26.3; Doc string of `process-file'
@ 2021-12-06 18:57 Drew Adams
  0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2021-12-06 18:57 UTC (permalink / raw)
  To: 52334

1. The doc string includes this:

 File names in INFILE and BUFFER are handled normally, but file
 names in ARGS should be relative to `default-directory'...

This doesn't at all specify what args INFILE and BUFFER are.  What does
"handled normally" mean?  Presumably it means that such file names are
something from relative file names.  That something isn't called out.

But more importantly, what are INFILE and BUFFER, besides the hint that
they can (but need not?) contain some (absolute?) file names?

The mention of `call-process' might lead a reader to hope for a
description of INFILE and BUFFER there, and then hope that the same
applies to `process-file'.  There's an INFILE arg described there, but
no BUFFER arg.

Please consider making the doc string of `process-file' complete.
It should be standalone, or it should explicitly refer to some other doc
for descriptions of some of its args.

Maybe something like this (?):

* For INFILE, repeat what `call-process' says:

 The program's input comes from file INFILE (nil means `null-device').

* For BUFFER, adjust what `call-process' says for a buffer DESTINATION:

 Output is inserted in BUFFER (current buffer if BUFFER is `t').

2. Args DISPLAY and ARGS are also unspecified in the doc string.
___

I suggest that someone familiar with `process-file' and `call-process'
fix the former's doc string.  If it makes sense for it to refer to the
doc string of `call-process', fine, but please do that explicitly and
clearly.

Someone with little knowledge should be able to grok what this
function's args are about - what they can be and how they're handled.


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.19042
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-06 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 18:57 bug#52334: 26.3; Doc string of `process-file' Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).