Subject: Re: bug#79161: [PATCH] Improve Vprint_variable_mapping

From: zach shaftel <[email-masked]>
Date: Mon, 04 Aug 2025 16:25:28 -0400

>From cf2b113794b37287e8f06f58b00144e5f9536fa9 Mon Sep 17 00:00:00 2001
From: Zach Shaftel <[email-masked]>
Date: Sat, 2 Aug 2025 23:49:23 -0400
Subject: [PATCH] Improve Vprint_variable_mapping

* src/print.c (print_create_variable_mapping): Fix a typo,
`unreadeable-function' to `unreadable-function'. Add `symbols-bare' as
an override for `print-symbols-bare'.
---
 doc/lispref/streams.texi | 4 +++-
 src/print.c              | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/streams.texi b/doc/lispref/streams.texi
index 3fd8f038bae..f049a2d23b1 100644
--- a/doc/lispref/streams.texi
+++ b/doc/lispref/streams.texi
@@ -1054,7 +1054,7 @@ Output Overrides
 This overrides @code{print-escape-multibyte}.
 @item charset-text-property
 This overrides @code{print-charset-text-property}.
-@item unreadeable-function
+@item unreadable-function
 This overrides @code{print-unreadable-function}.
 @item gensym
 This overrides @code{print-gensym}.
@@ -1066,6 +1066,8 @@ Output Overrides
 This overrides @code{float-output-format}.
 @item integers-as-characters
 This overrides @code{print-integers-as-characters}.
+@item symbols-bare
+This overrides @code{print-symbols-bare}.
 @end table
 
 In the future, more overrides may be offered that do not map directly
diff --git a/src/print.c b/src/print.c
index fa800743497..29edfaad531 100644
--- a/src/print.c
+++ b/src/print.c
@@ -682,7 +682,7 @@ print_create_variable_mapping (void)
 	   intern ("print-escape-multibyte"), Qnil),
     list3 (intern ("charset-text-property"),
 	   intern ("print-charset-text-property"), Qnil),
-    list3 (intern ("unreadeable-function"),
+    list3 (intern ("unreadable-function"),
 	   intern ("print-unreadable-function"), Qnil),
     list3 (intern ("gensym"), intern ("print-gensym"), Qnil),
     list3 (intern ("continuous-numbering"),
@@ -691,6 +691,7 @@ print_create_variable_mapping (void)
     list3 (intern ("float-format"), intern ("float-output-format"), Qnil),
     list3 (intern ("integers-as-characters"),
 	   intern ("print-integers-as-characters"), Qnil),
+    list3 (intern ("symbols-bare"), intern ("print-symbols-bare"), Qnil),
   };
 
   Vprint_variable_mapping = CALLMANY (Flist, total);
-- 
2.50.1

i forgot to update the manual, a revised patch is attached.

Eli Zaretskii <[email-masked]> writes:

>> Date: Sun, 03 Aug 2025 00:10:11 -0400
>> From:  zach shaftel via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <[email-masked]>
>> 
>> just a couple small updates to the PRINT-OVERRIDES argument to
>> prin1/prin1-to-string. fixes the typo "unreadeable-function", and adds
>> an override for `print-symbols-bare'.
>
> Thanks.
>
> Stefan, any comments?