emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/pkg c2d5866345: Fix printing of empty keywords


From: Gerd Moellmann
Subject: feature/pkg c2d5866345: Fix printing of empty keywords
Date: Fri, 21 Oct 2022 07:56:19 -0400 (EDT)

branch: feature/pkg
commit c2d5866345ebc66aecb5c090c898e98e54f3b410
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    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 f909c3c8cc..7cb7165cb0 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]