emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/callint.c,v


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/src/callint.c,v
Date: Sat, 29 Mar 2008 22:58:18 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Juri Linkov <jurta>     08/03/29 22:58:18

Index: callint.c
===================================================================
RCS file: /sources/emacs/emacs/src/callint.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -b -r1.163 -r1.164
--- callint.c   20 Mar 2008 17:21:16 -0000      1.163
+++ callint.c   29 Mar 2008 22:58:17 -0000      1.164
@@ -513,35 +513,16 @@
          break;
 
        case 'b':               /* Name of existing buffer */
-       case 'B':               /* Name of buffer, possibly nonexistent */
-         {
-           Lisp_Object tema, temb, temc;
+         args[i] = Fcurrent_buffer ();
+         if (EQ (selected_window, minibuf_window))
+           args[i] = Fother_buffer (args[i], Qnil, Qnil);
+         args[i] = Fread_buffer (callint_message, args[i], Qt);
+         break;
 
-           /* Get a list of buffer names (except internal buffers), and
-              use this list for default values.  Put either current
-              buffer or other-buffer in front.  */
-           tema = Qnil;
-           temc = Fcurrent_buffer ();
-           if (*tem == 'B' || EQ (selected_window, minibuf_window))
-             temc = Fother_buffer (temc, Qnil, Qnil);
-           tema = Fcons (XBUFFER (temc)->name, tema);
-           teml = Fbuffer_list (selected_frame);
-           for (; CONSP (teml); teml = XCDR (teml))
-             {
-               temb = XCAR (teml);
-               if (EQ (temb, temc))
-                 continue;
-               if (NILP (temb))
-                 continue;
-               if (NILP (XBUFFER (temb)->name))
-                 continue;
-               if (SREF (XBUFFER (temb)->name, 0) == ' ')
-                 continue;
-               tema = Fcons (XBUFFER (temb)->name, tema);
-             }
-           args[i] = Fread_buffer (callint_message, Fnreverse (tema),
-                                   *tem == 'b' ? Qt : Qnil);
-         }
+       case 'B':               /* Name of buffer, possibly nonexistent */
+         args[i] = Fread_buffer (callint_message,
+                                 Fother_buffer (Fcurrent_buffer (), Qnil, 
Qnil),
+                                 Qnil);
          break;
 
         case 'c':              /* Character */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]