aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/callint.c b/src/callint.c
index a174f829dc7..99a364f6127 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -338,13 +338,14 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
338 case 'b': /* Name of existing buffer */ 338 case 'b': /* Name of existing buffer */
339 args[i] = Fcurrent_buffer (); 339 args[i] = Fcurrent_buffer ();
340 if (EQ (selected_window, minibuf_window)) 340 if (EQ (selected_window, minibuf_window))
341 args[i] = Fother_buffer (args[i]); 341 args[i] = Fother_buffer (args[i], Qnil);
342 args[i] = Fread_buffer (build_string (prompt), args[i], Qt); 342 args[i] = Fread_buffer (build_string (prompt), args[i], Qt);
343 break; 343 break;
344 344
345 case 'B': /* Name of buffer, possibly nonexistent */ 345 case 'B': /* Name of buffer, possibly nonexistent */
346 args[i] = Fread_buffer (build_string (prompt), 346 args[i] = Fread_buffer (build_string (prompt),
347 Fother_buffer (Fcurrent_buffer ()), Qnil); 347 Fother_buffer (Fcurrent_buffer (), Qnil),
348 Qnil);
348 break; 349 break;
349 350
350 case 'c': /* Character */ 351 case 'c': /* Character */