unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31191: 26.1; [PATCH] Improve docstring of start-process-shell-command
@ 2018-04-17 11:39 Damien Cassou
  2018-04-17 11:43 ` Noam Postavsky
  0 siblings, 1 reply; 6+ messages in thread
From: Damien Cassou @ 2018-04-17 11:39 UTC (permalink / raw)
  To: 31191

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

* lisp/subr.el (start-process-shell-command): Add recommended
  signature to docstring. This hides the argument ARGS whose use is
  discouraged. This also makes the argument COMMAND visible so the
  user understands what the docstring is referring to.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Improve-docstring-of-start-process-shell-command.patch --]
[-- Type: text/x-patch, Size: 1135 bytes --]

From 912261c8dfb337c6f94ca81a495a3690c0628f1e Mon Sep 17 00:00:00 2001
From: Damien Cassou <damien@cassou.me>
Date: Mon, 16 Apr 2018 16:06:36 +0200
Subject: [PATCH] Improve docstring of start-process-shell-command

* lisp/subr.el (start-process-shell-command): Add recommended
  signature to docstring. This hides the argument ARGS whose use is
  discouraged. This also makes the argument COMMAND visible so the
  user understands what the docstring is referring to.
---
 lisp/subr.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index 9cf7d596cd..59bac5a195 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3107,7 +3107,9 @@ start-process-shell-command
 
 An old calling convention accepted any number of arguments after COMMAND,
 which were just concatenated to COMMAND.  This is still supported but strongly
-discouraged."
+discouraged.
+
+\(fn NAME BUFFER COMMAND)"
   (declare (advertised-calling-convention (name buffer command) "23.1"))
   ;; We used to use `exec' to replace the shell with the command,
   ;; but that failed to handle (...) and semicolon, etc.
-- 
2.14.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-17 22:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 11:39 bug#31191: 26.1; [PATCH] Improve docstring of start-process-shell-command Damien Cassou
2018-04-17 11:43 ` Noam Postavsky
2018-04-17 12:44   ` Damien Cassou
2018-04-17 13:06     ` Noam Postavsky
2018-04-17 13:45       ` Damien Cassou
2018-04-17 22:44         ` Noam Postavsky

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).