cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output
@ 2023-01-29 15:14 Jonathan Neuschäfer
  2023-01-29 15:22 ` Julia Lawall
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jonathan Neuschäfer @ 2023-01-29 15:14 UTC (permalink / raw)
  To: linux-doc
  Cc: Jonathan Neuschäfer, Julia Lawall, Nicolas Palix,
	Jonathan Corbet, cocci, linux-kernel

Without such escaping, -- is rendered as – (en dash).

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
 Documentation/dev-tools/coccinelle.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/dev-tools/coccinelle.rst b/Documentation/dev-tools/coccinelle.rst
index d9976069ed126..535ce126fb4fa 100644
--- a/Documentation/dev-tools/coccinelle.rst
+++ b/Documentation/dev-tools/coccinelle.rst
@@ -219,7 +219,7 @@ instance::
     cat cocci.err

 You can use SPFLAGS to add debugging flags; for instance you may want to
-add both --profile --show-trying to SPFLAGS when debugging. For example
+add both ``--profile --show-trying`` to SPFLAGS when debugging. For example
 you may want to use::

     rm -f err.log
@@ -248,7 +248,7 @@ variables for .cocciconfig is as follows:

 - Your current user's home directory is processed first
 - Your directory from which spatch is called is processed next
-- The directory provided with the --dir option is processed last, if used
+- The directory provided with the ``--dir`` option is processed last, if used

 Since coccicheck runs through make, it naturally runs from the kernel
 proper dir; as such the second rule above would be implied for picking up a
@@ -265,8 +265,8 @@ The kernel coccicheck script has::
     fi

 KBUILD_EXTMOD is set when an explicit target with M= is used. For both cases
-the spatch --dir argument is used, as such third rule applies when whether M=
-is used or not, and when M= is used the target directory can have its own
+the spatch ``--dir`` argument is used, as such third rule applies when whether
+M= is used or not, and when M= is used the target directory can have its own
 .cocciconfig file. When M= is not passed as an argument to coccicheck the
 target directory is the same as the directory from where spatch was called.

--
2.39.0


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

* Re: [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output
  2023-01-29 15:14 [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output Jonathan Neuschäfer
@ 2023-01-29 15:22 ` Julia Lawall
  2023-01-30  2:00 ` Bagas Sanjaya
  2023-01-31 20:38 ` Jonathan Corbet
  2 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2023-01-29 15:22 UTC (permalink / raw)
  To: Jonathan Neuschäfer
  Cc: linux-doc, Julia Lawall, Nicolas Palix, Jonathan Corbet, cocci,
	linux-kernel

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



On Sun, 29 Jan 2023, Jonathan Neuschäfer wrote:

> Without such escaping, -- is rendered as – (en dash).
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>

Thanks.

Acked-by: Julia Lawall <Julia.Lawall@inria.fr>

> ---
>  Documentation/dev-tools/coccinelle.rst | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/dev-tools/coccinelle.rst b/Documentation/dev-tools/coccinelle.rst
> index d9976069ed126..535ce126fb4fa 100644
> --- a/Documentation/dev-tools/coccinelle.rst
> +++ b/Documentation/dev-tools/coccinelle.rst
> @@ -219,7 +219,7 @@ instance::
>      cat cocci.err
>
>  You can use SPFLAGS to add debugging flags; for instance you may want to
> -add both --profile --show-trying to SPFLAGS when debugging. For example
> +add both ``--profile --show-trying`` to SPFLAGS when debugging. For example
>  you may want to use::
>
>      rm -f err.log
> @@ -248,7 +248,7 @@ variables for .cocciconfig is as follows:
>
>  - Your current user's home directory is processed first
>  - Your directory from which spatch is called is processed next
> -- The directory provided with the --dir option is processed last, if used
> +- The directory provided with the ``--dir`` option is processed last, if used
>
>  Since coccicheck runs through make, it naturally runs from the kernel
>  proper dir; as such the second rule above would be implied for picking up a
> @@ -265,8 +265,8 @@ The kernel coccicheck script has::
>      fi
>
>  KBUILD_EXTMOD is set when an explicit target with M= is used. For both cases
> -the spatch --dir argument is used, as such third rule applies when whether M=
> -is used or not, and when M= is used the target directory can have its own
> +the spatch ``--dir`` argument is used, as such third rule applies when whether
> +M= is used or not, and when M= is used the target directory can have its own
>  .cocciconfig file. When M= is not passed as an argument to coccicheck the
>  target directory is the same as the directory from where spatch was called.
>
> --
> 2.39.0
>
>

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

* Re: [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output
  2023-01-29 15:14 [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output Jonathan Neuschäfer
  2023-01-29 15:22 ` Julia Lawall
@ 2023-01-30  2:00 ` Bagas Sanjaya
  2023-01-31 20:38 ` Jonathan Corbet
  2 siblings, 0 replies; 4+ messages in thread
From: Bagas Sanjaya @ 2023-01-30  2:00 UTC (permalink / raw)
  To: Jonathan Neuschäfer, linux-doc
  Cc: Julia Lawall, Nicolas Palix, Jonathan Corbet, cocci, linux-kernel

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

On Sun, Jan 29, 2023 at 04:14:08PM +0100, Jonathan Neuschäfer wrote:
> Without such escaping, -- is rendered as – (en dash).

Well, the diff below is not what escaping means (to escape dashes is to
prepend each of them with a backslash, i.e. \-\-)

> 
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> ---
>  Documentation/dev-tools/coccinelle.rst | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/dev-tools/coccinelle.rst b/Documentation/dev-tools/coccinelle.rst
> index d9976069ed126..535ce126fb4fa 100644
> --- a/Documentation/dev-tools/coccinelle.rst
> +++ b/Documentation/dev-tools/coccinelle.rst
> @@ -219,7 +219,7 @@ instance::
>      cat cocci.err
> 
>  You can use SPFLAGS to add debugging flags; for instance you may want to
> -add both --profile --show-trying to SPFLAGS when debugging. For example
> +add both ``--profile --show-trying`` to SPFLAGS when debugging. For example
>  you may want to use::
> 
>      rm -f err.log
> @@ -248,7 +248,7 @@ variables for .cocciconfig is as follows:
> 
>  - Your current user's home directory is processed first
>  - Your directory from which spatch is called is processed next
> -- The directory provided with the --dir option is processed last, if used
> +- The directory provided with the ``--dir`` option is processed last, if used
> 
>  Since coccicheck runs through make, it naturally runs from the kernel
>  proper dir; as such the second rule above would be implied for picking up a
> @@ -265,8 +265,8 @@ The kernel coccicheck script has::
>      fi
> 
>  KBUILD_EXTMOD is set when an explicit target with M= is used. For both cases
> -the spatch --dir argument is used, as such third rule applies when whether M=
> -is used or not, and when M= is used the target directory can have its own
> +the spatch ``--dir`` argument is used, as such third rule applies when whether
> +M= is used or not, and when M= is used the target directory can have its own
>  .cocciconfig file. When M= is not passed as an argument to coccicheck the
>  target directory is the same as the directory from where spatch was called.
> 
 
You inline (wrap within inline code markup) these option keywords to match
other keywords.

Regardless, LGTM, thanks!

Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output
  2023-01-29 15:14 [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output Jonathan Neuschäfer
  2023-01-29 15:22 ` Julia Lawall
  2023-01-30  2:00 ` Bagas Sanjaya
@ 2023-01-31 20:38 ` Jonathan Corbet
  2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2023-01-31 20:38 UTC (permalink / raw)
  To: Jonathan Neuschäfer, linux-doc
  Cc: Jonathan Neuschäfer, Julia Lawall, Nicolas Palix, cocci,
	linux-kernel

Jonathan Neuschäfer <j.neuschaefer@gmx.net> writes:

> Without such escaping, -- is rendered as – (en dash).
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> ---
>  Documentation/dev-tools/coccinelle.rst | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks.

jon

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

end of thread, other threads:[~2023-01-31 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-29 15:14 [cocci] [PATCH] Documentation: coccinelle: Escape --options to fix Sphinx output Jonathan Neuschäfer
2023-01-29 15:22 ` Julia Lawall
2023-01-30  2:00 ` Bagas Sanjaya
2023-01-31 20:38 ` Jonathan Corbet

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 NNTP newsgroup(s).