diff options
| author | Stefan Kangas | 2020-08-23 17:20:09 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-10-18 17:25:23 +0200 |
| commit | 5ad2bb0fa95d9c9ae2387c963b453f695577450a (patch) | |
| tree | a2c6d368a514288ecad2f2ef7c038a0ccf33adbe /src | |
| parent | 647b1c5142d7a029a3124e0177112f16f84d3794 (diff) | |
| download | emacs-5ad2bb0fa95d9c9ae2387c963b453f695577450a.tar.gz emacs-5ad2bb0fa95d9c9ae2387c963b453f695577450a.zip | |
Translate describe_vector to Lisp
* lisp/help.el (help--describe-vector): New Lisp implementation of
describe_vector.
* src/keymap.c (Fdescribe_vector_internal): Remove defun.
(syms_of_keymap): Remove defsubr for Fdescribe_vector_internal.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/keymap.c b/src/keymap.c index 2076e29b6fb..9d12c3a47d5 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -3328,28 +3328,6 @@ DESCRIBER is the output function used; nil means use `princ'. */) | |||
| 3328 | return unbind_to (count, Qnil); | 3328 | return unbind_to (count, Qnil); |
| 3329 | } | 3329 | } |
| 3330 | 3330 | ||
| 3331 | DEFUN ("describe-vector-internal", Fdescribe_vector_internal, Sdescribe_vector_internal, 8, 8, 0, | ||
| 3332 | doc: /* Insert a description of contents of VECTOR. */) | ||
| 3333 | (Lisp_Object vector, Lisp_Object prefix, Lisp_Object transl, | ||
| 3334 | Lisp_Object partial, Lisp_Object shadow, Lisp_Object entire_map, | ||
| 3335 | Lisp_Object keymap_p, Lisp_Object mention_shadow) | ||
| 3336 | { | ||
| 3337 | ptrdiff_t count = SPECPDL_INDEX (); | ||
| 3338 | specbind (Qstandard_output, Fcurrent_buffer ()); | ||
| 3339 | CHECK_VECTOR_OR_CHAR_TABLE (vector); | ||
| 3340 | |||
| 3341 | bool b_transl = NILP (transl) ? false : true; | ||
| 3342 | bool b_partial = NILP (partial) ? false : true; | ||
| 3343 | bool b_keymap_p = NILP (keymap_p) ? false : true; | ||
| 3344 | bool b_mention_shadow = NILP (mention_shadow) ? false : true; | ||
| 3345 | |||
| 3346 | describe_vector (vector, prefix, Qnil, | ||
| 3347 | b_transl ? describe_translation : describe_command, | ||
| 3348 | b_partial, shadow, entire_map, | ||
| 3349 | b_keymap_p, b_mention_shadow); | ||
| 3350 | return unbind_to (count, Qnil); | ||
| 3351 | } | ||
| 3352 | |||
| 3353 | /* Insert in the current buffer a description of the contents of VECTOR. | 3331 | /* Insert in the current buffer a description of the contents of VECTOR. |
| 3354 | We call ELT_DESCRIBER to insert the description of one value found | 3332 | We call ELT_DESCRIBER to insert the description of one value found |
| 3355 | in VECTOR. | 3333 | in VECTOR. |
| @@ -3749,7 +3727,6 @@ be preferred. */); | |||
| 3749 | defsubr (&Skey_description); | 3727 | defsubr (&Skey_description); |
| 3750 | defsubr (&Skeymap__get_keyelt); | 3728 | defsubr (&Skeymap__get_keyelt); |
| 3751 | defsubr (&Sdescribe_vector); | 3729 | defsubr (&Sdescribe_vector); |
| 3752 | defsubr (&Sdescribe_vector_internal); | ||
| 3753 | defsubr (&Ssingle_key_description); | 3730 | defsubr (&Ssingle_key_description); |
| 3754 | defsubr (&Stext_char_description); | 3731 | defsubr (&Stext_char_description); |
| 3755 | defsubr (&Swhere_is_internal); | 3732 | defsubr (&Swhere_is_internal); |