aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2008-03-20 17:21:16 +0000
committerAndreas Schwab2008-03-20 17:21:16 +0000
commitacab783e7ff99fefdc0d5ecd341a41ef969d13a4 (patch)
tree5203bff79d5e9906a2e46cf281cea0340e30aa9c
parent9f7ddd67c038cf4d141a086758a91ef1cd560541 (diff)
downloademacs-acab783e7ff99fefdc0d5ecd341a41ef969d13a4.tar.gz
emacs-acab783e7ff99fefdc0d5ecd341a41ef969d13a4.zip
(Fcall_interactively) [case 'B']: Use other-buffer
as default.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/callint.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b436cb7e998..59904d09159 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-03-20 Andreas Schwab <schwab@suse.de>
2
3 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4 as default.
5
12008-03-19 Jason Rumney <jasonr@gnu.org> 62008-03-19 Jason Rumney <jasonr@gnu.org>
2 7
3 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. 8 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
diff --git a/src/callint.c b/src/callint.c
index 76d234e8678..2f98d263410 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -516,20 +516,20 @@ invoke it. If KEYS is omitted or nil, the return value of
516 case 'B': /* Name of buffer, possibly nonexistent */ 516 case 'B': /* Name of buffer, possibly nonexistent */
517 { 517 {
518 Lisp_Object tema, temb, temc; 518 Lisp_Object tema, temb, temc;
519 int skip_current = 1;
520 519
521 if (*tem == 'b' && !EQ (selected_window, minibuf_window)) 520 /* Get a list of buffer names (except internal buffers), and
522 skip_current = 0; 521 use this list for default values. Put either current
523 522 buffer or other-buffer in front. */
524 /* Get a list of buffer names (except the current buffer and
525 internal buffers), and use this list for default values. */
526 tema = Qnil; 523 tema = Qnil;
527 temc = Fcurrent_buffer (); 524 temc = Fcurrent_buffer ();
525 if (*tem == 'B' || EQ (selected_window, minibuf_window))
526 temc = Fother_buffer (temc, Qnil, Qnil);
527 tema = Fcons (XBUFFER (temc)->name, tema);
528 teml = Fbuffer_list (selected_frame); 528 teml = Fbuffer_list (selected_frame);
529 for (; CONSP (teml); teml = XCDR (teml)) 529 for (; CONSP (teml); teml = XCDR (teml))
530 { 530 {
531 temb = XCAR (teml); 531 temb = XCAR (teml);
532 if (skip_current && EQ (temb, temc)) 532 if (EQ (temb, temc))
533 continue; 533 continue;
534 if (NILP (temb)) 534 if (NILP (temb))
535 continue; 535 continue;