From f057a56f9dc8e2a4ad77ecf26f6cf114812bf389 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 25 Nov 2018 22:44:51 -0800 Subject: print: keep colon in keyword syms * lib.c (obj_print_impl): Always include leading colon when printing keyword symbols, regardless of pretty flag. Subject to backward compatibility. * txr.1: Compat note added. --- txr.1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index 11f7ca4f..60220d3d 100644 --- a/txr.1 +++ b/txr.1 @@ -65505,7 +65505,15 @@ Up to \*(TX 202, the function was incorrectly implemented, producing wrong results when both arguments are the same fixnum integer, or the same bignum object. The incorrect behavior is restored if 202 or earlier compatibility is -requested. +requested. After 202, the behavior of the +.code print +function changed with regard to symbols in the keyword package. +Regardless of the +.meta pretty-p +flag, keywords are printed with the leading colon. Compatibility with +202 or earlier restores the behavior that when the +.meta pretty-p +flag is true, symbols are printed without package prefixes. .IP 199 After \*(TX 199, certain global variables that had been deprecated for a long time, and no longer documented, were removed. Requesting 199 or -- cgit v1.2.3