diff options
| author | Stefan Kangas | 2025-02-28 19:59:12 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-02-28 20:20:55 +0100 |
| commit | 678fdcc16594aaedb319fe145d039aa118174f5d (patch) | |
| tree | 5f2648a1bca73d40827fd48a45098658baefbbd3 /src/data.c | |
| parent | 0b0bf7c07f2ecaca1e9b25d72139af0dd7e49832 (diff) | |
| download | emacs-678fdcc16594aaedb319fe145d039aa118174f5d.tar.gz emacs-678fdcc16594aaedb319fe145d039aa118174f5d.zip | |
; Grammar fixes for "native-compiled"
1. Prefer "native-compiled" to "native compiled".
The adjective "native-compiled" with the hyphen is generally more
consistent with the typical pattern in English, especially when the
compound modifies a noun (e.g., "native-compiled code").
2. Prefer "natively compiled" to "natively-compiled".
The adverb "natively" modifies "compiled", and it is standard not
to hyphenate an adverb + adjective combination when the adverb ends
in -ly (e.g., "code that is natively compiled").
For example, note that we say "high-speed internet" but "highly
performant code".
* Makefile.in (dest):
* configure.ac (HAVE_NATIVE_COMP):
* doc/emacs/building.texi (Lisp Libraries):
* doc/lispref/compile.texi (Native Compilation)
(Native-Compilation Functions, Native-Compilation Variables):
* doc/lispref/functions.texi (What Is a Function, Declare Form):
* doc/lispref/loading.texi (How Programs Do Loading, Library Search):
* etc/NEWS:
* etc/NEWS.28:
* etc/NEWS.29:
* etc/NEWS.30:
* lisp/emacs-lisp/comp-common.el (native-comp-never-optimize-functions)
(comp-function-type-spec):
* lisp/emacs-lisp/comp-cstr.el:
* lisp/subr.el (locate-eln-file):
* src/comp.c (SETJMP_NAME, syms_of_comp):
* src/data.c (Fsubrp, Fnative_comp_function_p, Fsubr_native_lambda_list):
* src/lread.c (Fload):
* src/pdumper.c (dump_do_dump_relocation):
* test/src/comp-tests.el (lambda-return2): Avoid grammatically incorrect
variations on "natively compiled" and "native-compiled". (Bug#56727)
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index 5fcdda1b6e8..b2e5ffe4eed 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -499,7 +499,7 @@ DEFUN ("user-ptrp", Fuser_ptrp, Suser_ptrp, 1, 1, 0, | |||
| 499 | #endif | 499 | #endif |
| 500 | 500 | ||
| 501 | DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0, | 501 | DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0, |
| 502 | doc: /* Return t if OBJECT is a built-in or native compiled Lisp function. | 502 | doc: /* Return t if OBJECT is a built-in or native-compiled Lisp function. |
| 503 | 503 | ||
| 504 | See also `primitive-function-p' and `native-comp-function-p'. */) | 504 | See also `primitive-function-p' and `native-comp-function-p'. */) |
| 505 | (Lisp_Object object) | 505 | (Lisp_Object object) |
| @@ -1046,7 +1046,7 @@ SUBR must be a built-in function. */) | |||
| 1046 | } | 1046 | } |
| 1047 | 1047 | ||
| 1048 | DEFUN ("native-comp-function-p", Fnative_comp_function_p, Snative_comp_function_p, 1, 1, | 1048 | DEFUN ("native-comp-function-p", Fnative_comp_function_p, Snative_comp_function_p, 1, 1, |
| 1049 | 0, doc: /* Return t if the object is native compiled Lisp function, nil otherwise. */) | 1049 | 0, doc: /* Return t if the object is native-compiled Lisp function, nil otherwise. */) |
| 1050 | (Lisp_Object object) | 1050 | (Lisp_Object object) |
| 1051 | { | 1051 | { |
| 1052 | return NATIVE_COMP_FUNCTIONP (object) ? Qt : Qnil; | 1052 | return NATIVE_COMP_FUNCTIONP (object) ? Qt : Qnil; |
| @@ -1054,7 +1054,7 @@ DEFUN ("native-comp-function-p", Fnative_comp_function_p, Snative_comp_function_ | |||
| 1054 | 1054 | ||
| 1055 | DEFUN ("subr-native-lambda-list", Fsubr_native_lambda_list, | 1055 | DEFUN ("subr-native-lambda-list", Fsubr_native_lambda_list, |
| 1056 | Ssubr_native_lambda_list, 1, 1, 0, | 1056 | Ssubr_native_lambda_list, 1, 1, 0, |
| 1057 | doc: /* Return the lambda list for a native compiled lisp/d | 1057 | doc: /* Return the lambda list for a native-compiled lisp/d |
| 1058 | function or t otherwise. */) | 1058 | function or t otherwise. */) |
| 1059 | (Lisp_Object subr) | 1059 | (Lisp_Object subr) |
| 1060 | { | 1060 | { |