comparison src/print.c @ 36891:4ddf47446692

(syms_of_print): Doc fixes.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Mar 2001 13:31:03 +0000
parents 0c203af33b2d
children 0c985ba42c84
comparison
equal deleted inserted replaced
36890:2a09ac0d3130 36891:4ddf47446692
1 /* Lisp object printing and output streams. 1 /* Lisp object printing and output streams.
2 Copyright (C) 1985, 86, 88, 93, 94, 95, 97, 98, 1999, 2000 2 Copyright (C) 1985, 86, 88, 93, 94, 95, 97, 98, 1999, 2000, 2001
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
1955 "Maximum depth of list nesting to print before abbreviating.\n\ 1955 "Maximum depth of list nesting to print before abbreviating.\n\
1956 A value of nil means no limit."); 1956 A value of nil means no limit.");
1957 Vprint_level = Qnil; 1957 Vprint_level = Qnil;
1958 1958
1959 DEFVAR_BOOL ("print-escape-newlines", &print_escape_newlines, 1959 DEFVAR_BOOL ("print-escape-newlines", &print_escape_newlines,
1960 "Non-nil means print newlines in strings as backslash-n.\n\ 1960 "Non-nil means print newlines in strings as `\\n'.\n\
1961 Also print formfeeds as backslash-f."); 1961 Also print formfeeds as `\\f'.");
1962 print_escape_newlines = 0; 1962 print_escape_newlines = 0;
1963 1963
1964 DEFVAR_BOOL ("print-escape-nonascii", &print_escape_nonascii, 1964 DEFVAR_BOOL ("print-escape-nonascii", &print_escape_nonascii,
1965 "Non-nil means print unibyte non-ASCII chars in strings as \\OOO.\n\ 1965 "Non-nil means print unibyte non-ASCII chars in strings as \\OOO.\n\
1966 \(OOO is the octal representation of the character code.)\n\ 1966 \(OOO is the octal representation of the character code.)\n\
1967 Only single-byte characters are affected, and only in `prin1'."); 1967 Only single-byte characters are affected, and only in `prin1'.");
1968 print_escape_nonascii = 0; 1968 print_escape_nonascii = 0;
1969 1969
1970 DEFVAR_BOOL ("print-escape-multibyte", &print_escape_multibyte, 1970 DEFVAR_BOOL ("print-escape-multibyte", &print_escape_multibyte,
1971 "Non-nil means print multibyte characters in strings as \\xXXXX.\n\ 1971 "Non-nil means print multibyte characters in strings as \\xXXXX.\n\
1972 \(XXX is the hex representation of the character code.)\n\ 1972 \(XXXX is the hex representation of the character code.)\n\
1973 This affects only `prin1'."); 1973 This affects only `prin1'.");
1974 print_escape_multibyte = 0; 1974 print_escape_multibyte = 0;
1975 1975
1976 DEFVAR_BOOL ("print-quoted", &print_quoted, 1976 DEFVAR_BOOL ("print-quoted", &print_quoted,
1977 "Non-nil means print quoted forms with reader syntax.\n\ 1977 "Non-nil means print quoted forms with reader syntax.\n\
1978 I.e., (quote foo) prints as 'foo, (function foo) as #'foo, and, backquoted\n\ 1978 I.e., (quote foo) prints as 'foo, (function foo) as #'foo, and backquoted\n\
1979 forms print in the new syntax."); 1979 forms print as in the new syntax.");
1980 print_quoted = 0; 1980 print_quoted = 0;
1981 1981
1982 DEFVAR_LISP ("print-gensym", &Vprint_gensym, 1982 DEFVAR_LISP ("print-gensym", &Vprint_gensym,
1983 "Non-nil means print uninterned symbols so they will read as uninterned.\n\ 1983 "Non-nil means print uninterned symbols so they will read as uninterned.\n\
1984 I.e., the value of (make-symbol \"foobar\") prints as #:foobar.\n\ 1984 I.e., the value of (make-symbol \"foobar\") prints as #:foobar.\n\
1985 When the uninterned symbol appears within a recursive data structure\n\ 1985 When the uninterned symbol appears within a recursive data structure,\n\
1986 and the symbol appears more than once, in addition use the #N# and #N=\n\ 1986 and the symbol appears more than once, in addition use the #N# and #N=\n\
1987 constructs as needed, so that multiple references to the same symbol are\n\ 1987 constructs as needed, so that multiple references to the same symbol are\n\
1988 shared once again when the text is read back."); 1988 shared once again when the text is read back.");
1989 Vprint_gensym = Qnil; 1989 Vprint_gensym = Qnil;
1990 1990
1999 representation) and `#N#' in place of each subsequent occurrence,\n\ 1999 representation) and `#N#' in place of each subsequent occurrence,\n\
2000 where N is a positive decimal integer."); 2000 where N is a positive decimal integer.");
2001 Vprint_circle = Qnil; 2001 Vprint_circle = Qnil;
2002 2002
2003 DEFVAR_LISP ("print-continuous-numbering", &Vprint_continuous_numbering, 2003 DEFVAR_LISP ("print-continuous-numbering", &Vprint_continuous_numbering,
2004 "*Non-nil means keep numbering between several print functions.\n\ 2004 "*Non-nil means number continuously across print calls.\n\
2005 See `print-gensym' nad `print-circle'. See also `print-number-table'."); 2005 This affects the numbers printed for #N= labels and #M# references.\n\
2006 See also `print-circle', `print-gensym', and `print-number-table'.\n\
2007 This variable should not be set with `setq'; bind it with a `let' instead.");
2006 Vprint_continuous_numbering = Qnil; 2008 Vprint_continuous_numbering = Qnil;
2007 2009
2008 DEFVAR_LISP ("print-number-table", &Vprint_number_table, 2010 DEFVAR_LISP ("print-number-table", &Vprint_number_table,
2009 "A vector keeping the information of the current printed object.\n\ 2011 "A vector used internally to produce `#N=' labels and `#N#' references.\n\
2010 This variable shouldn't be modified in Lisp level, but should be binded\n\ 2012 The Lisp printer uses this vector to detect Lisp objects referenced more\n\
2011 with nil using let at the same position with `print-continuous-numbering',\n\ 2013 than once. When `print-continuous-numbering' is bound to t, you should\n\
2012 so that the value of this variable can be freed after printing."); 2014 probably also bind `print-number-table' to nil. This ensures that the\n\
2015 value of `print-number-table' can be garbage-collected once the printing\n\
2016 is done.");
2013 Vprint_number_table = Qnil; 2017 Vprint_number_table = Qnil;
2014 2018
2015 /* prin1_to_string_buffer initialized in init_buffer_once in buffer.c */ 2019 /* prin1_to_string_buffer initialized in init_buffer_once in buffer.c */
2016 staticpro (&Vprin1_to_string_buffer); 2020 staticpro (&Vprin1_to_string_buffer);
2017 2021