[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 9878092d2b9 2/2: Minor copyedits in internals.texi
From: |
Stefan Kangas |
Subject: |
emacs-30 9878092d2b9 2/2: Minor copyedits in internals.texi |
Date: |
Sun, 19 Jan 2025 08:31:23 -0500 (EST) |
branch: emacs-30
commit 9878092d2b9114d70149c3d9ce1c24e2825138ae
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Minor copyedits in internals.texi
* doc/lispref/internals.texi (Writing Emacs Primitives): Minor
copyedits.
---
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 b318f26d26f..f598d96c625 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");