1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

118 commits

Author SHA1 Message Date
Dave Love
451f7df83b (Fwith_output_to_temp_buffer): Doc fix. 1998-09-10 22:51:33 +00:00
Richard M. Stallman
835d0be6dd (print_escape_multibyte, Qprint_escape_multibyte)
(Qprint_escape_nonascii): New variables.
(syms_of_print): Initialize them and set up Lisp variable.
(PRINTPREPARE): Bind print-escape-multibyte to t if appropriate.
Also bind print-escape-nonascii if appropriate.
(print): Test print_escape_multibyte and print_escape_nonascii,
rather than enable-multibyte-characters.
1998-08-07 07:22:27 +00:00
Richard M. Stallman
8a2ab0c691 (PRINTFINISH): Convert text to unibyte before
inserting in a unibyte buffer.
1998-06-24 18:32:53 +00:00
Karl Heuer
375fcc095f (print_string): Properly compute number of chars
in multibyte case, before calling strout.
1998-06-22 17:39:25 +00:00
Karl Heuer
799fdb040b (strout): Show multibyte message correctly. 1998-06-20 21:49:01 +00:00
Richard M. Stallman
96aab770c2 (sms_of_print): Doc fix in prev change. 1998-05-25 20:35:28 +00:00
Richard M. Stallman
38940e93ef (print_escape_nonascii): New variable.
(print) <Lisp_String>: Use it to force printing single-byte
non-ASCII characters as octal escapes.
(syms_of_print): Define print-escape-nonascii.
1998-05-25 20:29:54 +00:00
Richard M. Stallman
1eab22b5de (print) <Lisp_Cons>: Detect circular list. 1998-05-25 16:28:02 +00:00
Kenichi Handa
872a36d2e6 (print_string): Don't ignore garbage bytes following a
multibyte characters.
(print): Likewise.
1998-05-22 09:44:27 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Karl Heuer
4ad8bb205e (strout): Convert old echo area to multibyte, like printchar.
(printchar, strout): If echo area text converted to multibyte
does not all fit, truncate it at char boundary.
1998-04-13 18:58:10 +00:00
Karl Heuer
c5c6d57c7c (temp_output_buffer_setup): Clear out overlays,
visited file, undo list, etc.
1998-04-12 18:08:02 +00:00
Karl Heuer
1b62edd6ba (print) <Lisp_String>: Fix "\ " handling. 1998-04-12 06:49:26 +00:00
Karl Heuer
f4fe72d542 * print.c (print): Avoid min'/max' as variable names. 1998-04-09 17:58:28 +00:00
Richard M. Stallman
453fa9876f (print) <Lisp_String>: Follow a hex escape with `\ ' if nec. 1998-04-05 19:18:32 +00:00
Richard M. Stallman
9dffd51146 (PRINTPREPARE): Use make_string_from_bytes. 1998-03-21 17:51:30 +00:00
Richard M. Stallman
fc932ac6c7 Use STRING_BYTES and SET_STRING_BYTES. 1998-03-21 07:06:14 +00:00
Richard M. Stallman
0315377157 (print): Handle new data structure
for struct Lisp_Buffer_Local_Value.
1998-03-12 05:48:33 +00:00
Richard M. Stallman
1134b8547c (printchar): When outputting to echo area,
update message_enable_multibyte, and convert previous text
from unibyte to multibyte if necessary.
1998-02-12 05:18:59 +00:00
Richard M. Stallman
2190a05e34 (print): Declare local variable C as `int' instead of
`unsigned char' to handle multibyte character code.
1998-02-08 08:27:19 +00:00
Richard M. Stallman
7f45de2dfc (float_to_string): Handle infinities and NaN specially. 1998-02-02 01:09:35 +00:00
Richard M. Stallman
31c8f88101 Update copyright year. 1998-01-21 22:22:17 +00:00
Karl Heuer
974a6ff52f (print) <Lisp_String>: When multibyte is enabled, print
single-byte non-ASCII chars using octal escapes.
1998-01-18 04:51:16 +00:00
Richard M. Stallman
dc2a0b79d6 (print_string): Now static.
(print): When multibyte is disabled,
print multibyte string chars using hex escapes.

(printchar): Pass new arg to message_dolog.
(strout): New arg MULTIBYTE.  Callers changed.

(strout): Take args SIZE and SIZE_BYTE;
operate on both chars and bytes.
(print_string): Pass new arg to strout.
If not using strout, fetch a whole multibyte char at once.
(write_string): Pass new arg to strout.
(write_string_1): Likewise.
(print) <case Lisp_String>: Scan by chars and bytes.
(print) <case Lisp_Symbol>: Scan name by chars and bytes.

(PRINTPREPARE): Use make_multibyte_string.
Initialize print_buffer_pos_byte.  Use insert_1_both.
(printchar): Update print_buffer_pos_byte and print_buffer_pos.
(print_buffer_pos_byte): New variable.
1998-01-05 17:29:16 +00:00
Richard M. Stallman
6ddd6eee02 (PRINTDECLARE): Declare old_point_byte and start_point_byte.
(PRINTPREPARE): For a marker, set old_point_byte and start_point_byte.
Set both kinds of PT from the marker.
(PRINTFINISH): For a marker, use set_marker_both.
Restore both kinds of PT.
(print): For strings and symbols, handle multibyte chars.
1998-01-01 06:40:47 +00:00
Andreas Schwab
3d03cf9fdb (internal_with_output_to_temp_buffer):
Don't declare arg type taken by 2nd arg.
1997-11-28 14:37:15 +00:00
Andreas Schwab
dc22f25e59 (printchar): Declare `work' as unsigned char.
(internal_with_output_to_temp_buffer): Protoype parameter
FUNCTION.
(Ferror_message_string): Remove extra argument of
print_error_message.
(write_string): Define as returning nothing.
(write_string_1): Likewise.
(print_error_message): Likewise.
1997-11-21 14:05:58 +00:00
Paul Eggert
b0a1044b3e (DBL_MIN): Use workaround if DBL_MIN_REPLACEMENT is defined. 1997-10-29 07:47:37 +00:00
Paul Eggert
f356c3fb99 (_MAXLDBL, _NMAXLDBL):
Define to work around hpux 7 <math.h> problem.
(<math.h>): Include.
(<float.h>, <stdlib.h>): Include if STDC_HEADERS.
(FLT_RADIX, DBL_MANT_DIG, DBL_DIG): Default to IEEE values.
(DOUBLE_DIGITS_BOUND): New macro.
(float_to_string): By default, generate the fewest number of digits
that represent the floating point value exactly.
1997-10-23 04:29:36 +00:00
Karl Heuer
265375e7ff (syms_of_print): Fix doc string of print-gensym. 1997-10-02 03:10:50 +00:00
Richard M. Stallman
cd22039d5b (Fexternal_debugging_output): On Windows output to debugger. 1997-09-12 04:06:46 +00:00
Richard M. Stallman
aec2b95b43 (strout, printchar): Handle minibuffer_auto_raise. 1997-07-26 22:20:51 +00:00
Richard M. Stallman
e0f694317d (Vprint_gensym_alist): Renamed from printed_gensyms.
(Vprint_gensym): Now a Lisp_Object; Renamed from print_gensym.
(syms_of_print): Set up both as Lisp vars.
(PRINTPREPARE, PRINTFINISH): Don't clear Vprint_gensym_alist
if Vprint_gensym is a cons cell.
1997-07-25 03:04:19 +00:00
Richard M. Stallman
2e34157cd9 Fix bugs with inappropriate mixing of Lisp_Object with int. 1997-07-04 20:44:52 +00:00
Richard M. Stallman
0872e11f15 (Ferror_message_string): Optimize (error STRING) case. 1997-06-20 08:45:37 +00:00
Richard M. Stallman
d27497e33a (print): Symbols like e2 and 2e are not confusing. 1997-04-18 19:12:24 +00:00
Kenichi Handa
3701b5de07 (read1): Adjusted for the new structure of Lisp_Char_Table. 1997-04-07 07:12:13 +00:00
Richard M. Stallman
e837058bc3 (print): Generate a backslash in \2e10. 1997-03-22 04:13:05 +00:00
Karl Heuer
087e3c465d Include charset.h.
(printchar, strout): Handle multibyte characters.
(print): Correct the value of size_in_chars of a bool vector.
1997-02-20 06:53:20 +00:00
Richard M. Stallman
1bad7c5925 (print): Round size of bool-vector properly. 1997-01-20 01:56:52 +00:00
Richard M. Stallman
99351a0dda (PRINTFINISH): Use xfree, not free. 1996-11-05 19:48:26 +00:00
Richard M. Stallman
b3da2c73d2 (PRINTPREPARE): Really do set free_print_buffer. 1996-11-04 16:35:44 +00:00
Richard M. Stallman
08e8d2975c (PRINTDECLARE): Declare specpdl_count and free_print_buffer.
(PRINTPREPARE): If print_buffer is nonzero,
save its contents in a string using record_unwind_protect.
(PRINTFINISH): Restore old print_buffer contents.
Free it only if this PRINTPREPARE malloc'd it.
(print): Don't call PRINTFULLP after all.
(print_unwind): New function.
1996-11-04 05:31:25 +00:00
Richard M. Stallman
09eddb5698 (printchar, strout): Do QUIT for echo area output.
(PRINTFULLP): New macro.
(print): Exit if PRINTFULLP.
When printing a symbol, don't save a pointer to the name.
(PRINTFINISH): Null out print_buffer after freeing it.
1996-11-02 00:00:20 +00:00
Erik Naggum
081e0581b6 Add #n=object, #n#, and #:symbol constructs to printer.
(PRINTDECLARE): New macro to declare required variables.
(PRINTPREPARE, PRINTFINISH): Set printed_genyms to nil.
(Fwrite_char, write_string, write_string_1, Fterpri, Fprin1,
Fprin1_to_string, Fprinc, Fprint): Use new macro PRINTDECLARE.
(print): Print uninterned symbols readable.
(syms_of_print): Defvar `print-gensym', staticpro printed_gensyms.
1996-09-08 23:19:05 +00:00
Karl Heuer
e3678b6433 Removed support for !MULTI_FRAME. 1996-09-01 21:04:32 +00:00
Karl Heuer
6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Erik Naggum
2f100b5c7a (print-quoted): New variable.
(print): Print certain expressions more compactly when set.
Also use XCAR and XCDR directly -- we know we have conses.
1996-08-24 19:39:34 +00:00
Richard M. Stallman
6fec5601a2 When printing into a buffer, generate all the text
first, then insert it all at once.
(print_buffer): New variable.
(print_buffer_size, print_buffer_pos): New variables.
(PRINTPREPARE): Allocate print_buffer.
(PRINTFINISH): Free print_buffer after inserting its contents.
(printchar, strout): Output into print_buffer.
(print_string): If printcharfun is nil, use strout.
1996-07-30 18:51:50 +00:00
Karl Heuer
f7779190d4 (print): Fix args in strout calls. 1996-07-16 05:39:06 +00:00