From c2d5866345ebc66aecb5c090c898e98e54f3b410 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Fri, 21 Oct 2022 13:55:06 +0200 Subject: [PATCH] Fix printing of empty keywords * src/print.c (print_symbol): Don't print ## for keywords with empty symbol name. --- src/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index f909c3c8cc2..7cb7165cb08 100644 --- a/src/print.c +++ b/src/print.c @@ -2252,7 +2252,7 @@ print_symbol (Lisp_Object symbol, Lisp_Object printcharfun, /* In Common Lisp, this would be ||, but we don't have multi-escapes in Emacs, and we will probably never have them because '| has been a valid symbol, and it is used, for instance in rx.el. */ - if (SBYTES (name) == 0) + if (SBYTES (name) == 0 && !EQ (package, Vkeyword_package)) print_c_string ("##", printcharfun); else print_symbol_name (name, printcharfun, escape); -- 2.39.2