summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-04-08 11:37:15 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-04-08 11:37:15 -0400
commitcbb59342310c395a04b5dc85454938167793dd96 (patch)
tree833ee203c2b09cd9f826cc25081811d38e15a484 /src/print.c
parente3971c4440fc828326aaeec79d1a53638d67ed0f (diff)
downloademacs-cbb59342310c395a04b5dc85454938167793dd96.tar.gz
Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp.
* lisp/help.el (help-form-show): New function, to be called from C. Put help-form output in a buffer named differently than *Help*. * src/keyboard.c (read_char): Call Lisp function help-form-show, instead of using internal_with_output_to_temp_buffer. (Qhelp_form_show): New var. * src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype. * src/print.c (internal_with_output_to_temp_buffer): Function deleted.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/print.c b/src/print.c
index c076e1ec973..f68f04ac5fa 100644
--- a/src/print.c
+++ b/src/print.c
@@ -520,29 +520,6 @@ temp_output_buffer_setup (const char *bufname)
specbind (Qstandard_output, buf);
}
-
-/* FIXME: Use Lisp's with-output-to-temp-buffer instead! */
-Lisp_Object
-internal_with_output_to_temp_buffer (const char *bufname, Lisp_Object (*function) (Lisp_Object), Lisp_Object args)
-{
- int count = SPECPDL_INDEX ();
- Lisp_Object buf, val;
- struct gcpro gcpro1;
-
- GCPRO1 (args);
- record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
- temp_output_buffer_setup (bufname);
- buf = Vstandard_output;
- UNGCPRO;
-
- val = (*function) (args);
-
- GCPRO1 (val);
- temp_output_buffer_show (buf);
- UNGCPRO;
-
- return unbind_to (count, val);
-}
static void print (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag);
static void print_preprocess (Lisp_Object obj);