diff src/buffer.c @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents d44af0c54775
children 41f2f0e326e9
line wrap: on
line diff
--- a/src/buffer.c	Mon Aug 13 10:08:36 2007 +0200
+++ b/src/buffer.c	Mon Aug 13 10:09:35 2007 +0200
@@ -489,7 +489,7 @@
       NUNGCPRO;
     }
 
-  for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail))
+  LIST_LOOP (tail, Vbuffer_alist)
     {
       buf = Fcdr (XCAR (tail));
       if (!BUFFERP (buf)) continue;
@@ -1205,10 +1205,6 @@
   if (EQ (buf, Vecho_area_buffer))
     return Qnil;
 
-  /* Or the special invisible internal prin1 buffer. */
-  if (EQ (buf, Vprin1_to_string_buffer))
-    return Qnil;
-
   /* Query if the buffer is still modified.  */
   if (INTERACTIVE && !NILP (b->filename)
       && BUF_MODIFF (b) > BUF_SAVE_MODIFF (b))
@@ -1241,9 +1237,7 @@
 
       /* First run the query functions; if any query is answered no,
          don't kill the buffer.  */
-      for (tail = Vkill_buffer_query_functions;
-           !NILP (tail);
-           tail = Fcdr (tail))
+      EXTERNAL_LIST_LOOP (tail, Vkill_buffer_query_functions)
 	{
 	  if (NILP (call0 (Fcar (tail))))
 	    {
@@ -2759,14 +2753,6 @@
 #include "bufslots.h"
 #undef MARKED_SLOT
 
-  Vprin1_to_string_buffer
-    = Fget_buffer_create (Fpurecopy (build_string (" prin1")));
-  /* Reset Vbuffer_alist again so that the above buf is magically
-     invisible */
-  Vbuffer_alist = Qnil;
-  /* Want no undo records for prin1_to_string_buffer */
-  Fbuffer_disable_undo (Vprin1_to_string_buffer);
-
   {
     Lisp_Object scratch =
       Fset_buffer (Fget_buffer_create (QSscratch));