diff options
| author | Dmitry Antipov | 2013-03-19 18:09:05 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-03-19 18:09:05 +0400 |
| commit | cf4bb06de4057d96fb1725615e5cf2c288fc3199 (patch) | |
| tree | abaa38beaf5f59517c98682fdb4d5470f7f9a367 /src/print.c | |
| parent | 0e6008c58ee197de5708e6c26e4994da89945c4f (diff) | |
| download | emacs-cf4bb06de4057d96fb1725615e5cf2c288fc3199.tar.gz emacs-cf4bb06de4057d96fb1725615e5cf2c288fc3199.zip | |
* print.c (syms_of_print): Initialize debugging output not here...
(init_print_once): ...but in a new function here.
* lisp.h (init_print_once): Add prototype.
* emacs.c (main): Add call to init_print_once. Adjust comments.
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c index 03b46748454..53c0d99f836 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2165,7 +2165,16 @@ print_interval (INTERVAL interval, Lisp_Object printcharfun) | |||
| 2165 | print_object (interval->plist, printcharfun, 1); | 2165 | print_object (interval->plist, printcharfun, 1); |
| 2166 | } | 2166 | } |
| 2167 | 2167 | ||
| 2168 | 2168 | /* Initialize debug_print stuff early to have it working from the very | |
| 2169 | beginning. */ | ||
| 2170 | |||
| 2171 | void | ||
| 2172 | init_print_once (void) | ||
| 2173 | { | ||
| 2174 | DEFSYM (Qexternal_debugging_output, "external-debugging-output"); | ||
| 2175 | defsubr (&Sexternal_debugging_output); | ||
| 2176 | } | ||
| 2177 | |||
| 2169 | void | 2178 | void |
| 2170 | syms_of_print (void) | 2179 | syms_of_print (void) |
| 2171 | { | 2180 | { |
| @@ -2297,12 +2306,10 @@ priorities. */); | |||
| 2297 | defsubr (&Sprint); | 2306 | defsubr (&Sprint); |
| 2298 | defsubr (&Sterpri); | 2307 | defsubr (&Sterpri); |
| 2299 | defsubr (&Swrite_char); | 2308 | defsubr (&Swrite_char); |
| 2300 | defsubr (&Sexternal_debugging_output); | ||
| 2301 | #ifdef WITH_REDIRECT_DEBUGGING_OUTPUT | 2309 | #ifdef WITH_REDIRECT_DEBUGGING_OUTPUT |
| 2302 | defsubr (&Sredirect_debugging_output); | 2310 | defsubr (&Sredirect_debugging_output); |
| 2303 | #endif | 2311 | #endif |
| 2304 | 2312 | ||
| 2305 | DEFSYM (Qexternal_debugging_output, "external-debugging-output"); | ||
| 2306 | DEFSYM (Qprint_escape_newlines, "print-escape-newlines"); | 2313 | DEFSYM (Qprint_escape_newlines, "print-escape-newlines"); |
| 2307 | DEFSYM (Qprint_escape_multibyte, "print-escape-multibyte"); | 2314 | DEFSYM (Qprint_escape_multibyte, "print-escape-multibyte"); |
| 2308 | DEFSYM (Qprint_escape_nonascii, "print-escape-nonascii"); | 2315 | DEFSYM (Qprint_escape_nonascii, "print-escape-nonascii"); |