aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
authorJoakim Verona2013-09-10 23:52:26 +0200
committerJoakim Verona2013-09-10 23:52:26 +0200
commit63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c (patch)
treee5078c5545c777e21944a9ee4199a6f2c6d25ca9 /src/print.c
parent92aeabcc8a007f521a664e3aee092eb80ad0f49a (diff)
downloademacs-63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c.tar.gz
emacs-63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c.zip
merge upstream
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c
index e55657d7d8c..03e781cac18 100644
--- a/src/print.c
+++ b/src/print.c
@@ -126,7 +126,8 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE = 1;
126 set_buffer_internal (XMARKER (printcharfun)->buffer); \ 126 set_buffer_internal (XMARKER (printcharfun)->buffer); \
127 marker_pos = marker_position (printcharfun); \ 127 marker_pos = marker_position (printcharfun); \
128 if (marker_pos < BEGV || marker_pos > ZV) \ 128 if (marker_pos < BEGV || marker_pos > ZV) \
129 error ("Marker is outside the accessible part of the buffer"); \ 129 signal_error ("Marker is outside the accessible " \
130 "part of the buffer", printcharfun); \
130 old_point = PT; \ 131 old_point = PT; \
131 old_point_byte = PT_BYTE; \ 132 old_point_byte = PT_BYTE; \
132 SET_PT_BOTH (marker_pos, \ 133 SET_PT_BOTH (marker_pos, \
@@ -138,10 +139,10 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE = 1;
138 if (NILP (printcharfun)) \ 139 if (NILP (printcharfun)) \
139 { \ 140 { \
140 Lisp_Object string; \ 141 Lisp_Object string; \
141 if (NILP (BVAR (current_buffer, enable_multibyte_characters)) \ 142 if (NILP (BVAR (current_buffer, enable_multibyte_characters)) \
142 && ! print_escape_multibyte) \ 143 && ! print_escape_multibyte) \
143 specbind (Qprint_escape_multibyte, Qt); \ 144 specbind (Qprint_escape_multibyte, Qt); \
144 if (! NILP (BVAR (current_buffer, enable_multibyte_characters)) \ 145 if (! NILP (BVAR (current_buffer, enable_multibyte_characters)) \
145 && ! print_escape_nonascii) \ 146 && ! print_escape_nonascii) \
146 specbind (Qprint_escape_nonascii, Qt); \ 147 specbind (Qprint_escape_nonascii, Qt); \
147 if (print_buffer != 0) \ 148 if (print_buffer != 0) \
@@ -168,7 +169,7 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE = 1;
168 if (NILP (printcharfun)) \ 169 if (NILP (printcharfun)) \
169 { \ 170 { \
170 if (print_buffer_pos != print_buffer_pos_byte \ 171 if (print_buffer_pos != print_buffer_pos_byte \
171 && NILP (BVAR (current_buffer, enable_multibyte_characters))) \ 172 && NILP (BVAR (current_buffer, enable_multibyte_characters)))\
172 { \ 173 { \
173 unsigned char *temp = alloca (print_buffer_pos + 1); \ 174 unsigned char *temp = alloca (print_buffer_pos + 1); \
174 copy_text ((unsigned char *) print_buffer, temp, \ 175 copy_text ((unsigned char *) print_buffer, temp, \