From 782710832523642265412d45d2347ed6e7d460c3 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 19 Jan 2025 14:28:30 +0100 Subject: [PATCH] Minor copyedits in internals.texi * doc/lispref/internals.texi (Writing Emacs Primitives): Minor copyedits. (cherry picked from commit 9878092d2b9114d70149c3d9ce1c24e2825138ae) --- doc/lispref/internals.texi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index c6ca8159313..d2bb76f1705 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi @@ -1021,7 +1021,7 @@ comment. @xref{Documentation Basics}, for more details. (@code{int} and @code{bool}), the name of the C variable is the name of the Lisp variable with @code{-} replaced by @code{_}. When the variable has type @code{Lisp_Object}, the convention is to also prefix -the C variable name with @code{V}. i.e. +the C variable name with @code{V}. This is an example: @smallexample DEFVAR_INT ("my-int-variable", my_int_variable, @@ -1038,7 +1038,6 @@ with @code{let}. In C sources, this is done by defining a corresponding, constant symbol, and using @code{specbind}. By convention, @code{Qmy_lisp_variable} corresponds to @code{Vmy_lisp_variable}; to define it, use the @code{DEFSYM} macro. -i.e. @smallexample DEFSYM (Qmy_lisp_variable, "my-lisp-variable"); @@ -1050,17 +1049,17 @@ DEFSYM (Qmy_lisp_variable, "my-lisp-variable"); specbind (Qmy_lisp_variable, Qt); @end smallexample - In Lisp symbols sometimes need to be quoted, to achieve the same -effect in C you again use the corresponding constant symbol + In Lisp, symbols sometimes need to be quoted. To achieve the same +effect in C, you again use the corresponding constant symbol @code{Qmy_lisp_variable}. For example, when creating a buffer-local -variable (@pxref{Buffer-Local Variables}) in Lisp you would write: +variable (@pxref{Buffer-Local Variables}) in Lisp, you would write: @smallexample (make-variable-buffer-local 'my-lisp-variable) @end smallexample -In C the corresponding code uses @code{Fmake_variable_buffer_local} in -combination with @code{DEFSYM}, i.e. +In C, the corresponding code uses @code{Fmake_variable_buffer_local} in +combination with @code{DEFSYM}: @smallexample DEFSYM (Qmy_lisp_variable, "my-lisp-variable"); -- 2.39.5