aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-05 09:50:10 +0000
committerGerd Moellmann2001-10-05 09:50:10 +0000
commitbf9f2aabfea2209ad109606642aac60e037853bd (patch)
treeb5e67d9aef189d09e21f39d4d26ad22977dab423 /src
parentf5c1dd0dc5c566dc4d192dfa04edb4127f45beb8 (diff)
downloademacs-bf9f2aabfea2209ad109606642aac60e037853bd.tar.gz
emacs-bf9f2aabfea2209ad109606642aac60e037853bd.zip
(print_preprocess, print_object): Test internedness of
symbols differently.
Diffstat (limited to 'src')
-rw-r--r--src/print.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/print.c b/src/print.c
index bd0546895f6..4937660e5e6 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1197,7 +1197,8 @@ print_preprocess (obj)
1197 if (STRINGP (obj) || CONSP (obj) || VECTORP (obj) 1197 if (STRINGP (obj) || CONSP (obj) || VECTORP (obj)
1198 || COMPILEDP (obj) || CHAR_TABLE_P (obj) 1198 || COMPILEDP (obj) || CHAR_TABLE_P (obj)
1199 || (! NILP (Vprint_gensym) 1199 || (! NILP (Vprint_gensym)
1200 && SYMBOLP (obj) && NILP (XSYMBOL (obj)->obarray))) 1200 && SYMBOLP (obj)
1201 && !SYMBOL_INTERNED_P (obj)))
1201 { 1202 {
1202 /* In case print-circle is nil and print-gensym is t, 1203 /* In case print-circle is nil and print-gensym is t,
1203 add OBJ to Vprint_number_table only when OBJ is a symbol. */ 1204 add OBJ to Vprint_number_table only when OBJ is a symbol. */
@@ -1235,8 +1236,9 @@ print_preprocess (obj)
1235 /* If Vprint_continuous_numbering is non-nil and OBJ is a gensym, 1236 /* If Vprint_continuous_numbering is non-nil and OBJ is a gensym,
1236 always print the gensym with a number. This is a special for 1237 always print the gensym with a number. This is a special for
1237 the lisp function byte-compile-output-docform. */ 1238 the lisp function byte-compile-output-docform. */
1238 if (! NILP (Vprint_continuous_numbering) && SYMBOLP (obj) 1239 if (!NILP (Vprint_continuous_numbering)
1239 && NILP (XSYMBOL (obj)->obarray)) 1240 && SYMBOLP (obj)
1241 && !SYMBOL_INTERNED_P (obj))
1240 PRINT_NUMBER_STATUS (Vprint_number_table, print_number_index) = Qt; 1242 PRINT_NUMBER_STATUS (Vprint_number_table, print_number_index) = Qt;
1241 print_number_index++; 1243 print_number_index++;
1242 } 1244 }
@@ -1288,7 +1290,8 @@ print_object (obj, printcharfun, escapeflag)
1288 if (STRINGP (obj) || CONSP (obj) || VECTORP (obj) 1290 if (STRINGP (obj) || CONSP (obj) || VECTORP (obj)
1289 || COMPILEDP (obj) || CHAR_TABLE_P (obj) 1291 || COMPILEDP (obj) || CHAR_TABLE_P (obj)
1290 || (! NILP (Vprint_gensym) 1292 || (! NILP (Vprint_gensym)
1291 && SYMBOLP (obj) && NILP (XSYMBOL (obj)->obarray))) 1293 && SYMBOLP (obj)
1294 && !SYMBOL_INTERNED_P (obj)))
1292 { 1295 {
1293 if (NILP (Vprint_circle) && NILP (Vprint_gensym)) 1296 if (NILP (Vprint_circle) && NILP (Vprint_gensym))
1294 { 1297 {
@@ -1505,7 +1508,7 @@ print_object (obj, printcharfun, escapeflag)
1505 else 1508 else
1506 confusing = 0; 1509 confusing = 0;
1507 1510
1508 if (! NILP (Vprint_gensym) && NILP (XSYMBOL (obj)->obarray)) 1511 if (! NILP (Vprint_gensym) && !SYMBOL_INTERNED_P (obj))
1509 { 1512 {
1510 PRINTCHAR ('#'); 1513 PRINTCHAR ('#');
1511 PRINTCHAR (':'); 1514 PRINTCHAR (':');