From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 26925@debbugs.gnu.org
Subject: bug#26925: Improve /doc/lispref/strings.texi (split-string) documentation
Date: Sat, 3 Jun 2017 17:50:27 +0900 [thread overview]
Message-ID: <3D9A3600-CF3D-4DD9-866C-CBEE8F692B25@gmail.com> (raw)
In-Reply-To: <87vaoxoty1.fsf@rosalinde>
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Just one tiny bit of cleanup:
-If the optional argument @var{trim}
→
+If @var{trim}
just to adapt the text to the description of the other arguments.
===========================
Improve documentation of 'split-string'
* doc/lispref/strings.texi (Creating Strings): Correct a wording in `split-string'.
===========================
[-- Attachment #2: strings.texi.diff --]
[-- Type: application/octet-stream, Size: 910 bytes --]
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index e80e778bec..b500b3d355 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -289,10 +289,9 @@ null strings whenever there are two consecutive matches for
@var{string}. If @var{omit-nulls} is @code{t}, these null strings are
omitted from the result.
-If the optional argument @var{trim} is non-@code{nil}, it should be a
-regular expression to match text to trim from the beginning and end of
-each substring. If trimming makes the substring empty, it is treated
-as null.
+If @var{trim} is non-@code{nil}, it should be a regular expression to
+match text to trim from the beginning and end of each substring. If
+trimming makes the substring empty, it is treated as null.
If you need to split a string into a list of individual command-line
arguments suitable for @code{call-process} or @code{start-process},
[-- Attachment #3: Type: text/plain, Size: 1743 bytes --]
> On 2017/05/19, at 22:30, Stephen Berman <stephen.berman@gmx.net> wrote:
>
> On Fri, 19 May 2017 15:56:41 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>
>>> From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
>>> Date: Fri, 19 May 2017 21:23:57 +0900
>>> Cc: 26925-done@debbugs.gnu.org
>>>
>>>> One nit: please don't refer to functions with syntax that looks like a
>>>> function call, as in (split-string) above, or foo() for C sources.
>>>> The GNU Coding Standards frown on such references, because they look
>>>> like a call to a function with no arguments, which is not what is
>>>> meant there. We use 'split-string' and 'foo' instead, i.e. the name
>>>> of the function in quotes.
>>>
>>> Thank you Eli.
>>>
>>> So the function name should have been quoted in both occurrences?
>>>
>>>>> ===========================
>>>>> Improve documentation of 'split-string'
>>>>>
>>>>> * /doc/lispref/strings.texi 'split-string': change paragraph
>>>>> order to improve readability.
>>>>> ===========================
>>
>> No, only in the first occurrence. In the ChangeLog-style entries, we
>> always put function names in parentheses.
>
> Yes for code ChangeLogs, but for the Texinfo sources, the convention for
> ChangeLog entries seems to be to put the node name in parentheses, and
> then the function name would be quoted in the entry, as usual, e.g.:
>
> * doc/lispref/strings.texi (Creating Strings): Change paragraph
> order of `split-string' definition to improve readability.
>
> This convention of putting the node name in parens is apparently
> undocumented, but it's what `C-x 4 a' does and (probably that's why)
> almost all the ChangeLog entries for the Texinfo sources follow it.
>
> Steve Berman
next prev parent reply other threads:[~2017-06-03 8:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-14 15:45 bug#26925: Improve /doc/lispref/strings.texi (split-string) documentation Jean-Christophe Helary
2017-05-19 11:47 ` Eli Zaretskii
2017-05-19 12:23 ` Jean-Christophe Helary
2017-05-19 12:56 ` Eli Zaretskii
2017-05-19 13:02 ` Jean-Christophe Helary
2017-05-19 13:30 ` Stephen Berman
2017-06-03 8:50 ` Jean-Christophe Helary [this message]
2017-06-03 9:59 ` Eli Zaretskii
2017-06-03 13:50 ` Jean-Christophe Helary
2017-06-03 14:46 ` Eli Zaretskii
2017-06-03 23:45 ` Jean-Christophe Helary
2017-06-04 2:38 ` Eli Zaretskii
2017-06-04 7:49 ` Michael Albinus
2017-06-04 9:19 ` Jean-Christophe Helary
2017-06-04 13:57 ` Eli Zaretskii
2017-06-04 15:14 ` Jean-Christophe Helary
2017-06-04 15:46 ` Eli Zaretskii
2017-06-05 0:33 ` Jean-Christophe Helary
2017-06-05 2:46 ` Eli Zaretskii
2017-06-05 3:31 ` Jean-Christophe Helary
2017-06-05 5:15 ` Jean-Christophe Helary
2017-06-05 15:09 ` Eli Zaretskii
2017-06-05 21:24 ` Jean-Christophe Helary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D9A3600-CF3D-4DD9-866C-CBEE8F692B25@gmail.com \
--to=jean.christophe.helary@gmail.com \
--cc=26925@debbugs.gnu.org \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).