diff options
| author | Juri Linkov | 2008-03-29 22:58:43 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-03-29 22:58:43 +0000 |
| commit | f03f8f2cb68e3e54b028efae83c59cc9a9f5fb1e (patch) | |
| tree | 8d349ccee29d471dcf9da99d742d5fc97f4e99b2 | |
| parent | f29775feacf8dc62ed7f13549f780561635e0353 (diff) | |
| download | emacs-f03f8f2cb68e3e54b028efae83c59cc9a9f5fb1e.tar.gz emacs-f03f8f2cb68e3e54b028efae83c59cc9a9f5fb1e.zip | |
(Fcall_interactively): Revert 2008-03-16 change
for interactive code letters 'b' and 'B'.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/callint.c | 37 |
2 files changed, 14 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c7f52c3dd6a..844f42e7301 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-29 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * callint.c (Fcall_interactively): Revert 2008-03-16 change | ||
| 4 | for interactive code letters 'b' and 'B'. | ||
| 5 | |||
| 1 | 2008-03-29 Eli Zaretskii <eliz@gnu.org> | 6 | 2008-03-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * fileio.c (Fexpand_file_name): Convert the value of $HOME to a | 8 | * fileio.c (Fexpand_file_name): Convert the value of $HOME to a |
diff --git a/src/callint.c b/src/callint.c index 2f98d263410..8a9f8322d9b 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -513,35 +513,16 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 513 | break; | 513 | break; |
| 514 | 514 | ||
| 515 | case 'b': /* Name of existing buffer */ | 515 | case 'b': /* Name of existing buffer */ |
| 516 | args[i] = Fcurrent_buffer (); | ||
| 517 | if (EQ (selected_window, minibuf_window)) | ||
| 518 | args[i] = Fother_buffer (args[i], Qnil, Qnil); | ||
| 519 | args[i] = Fread_buffer (callint_message, args[i], Qt); | ||
| 520 | break; | ||
| 521 | |||
| 516 | case 'B': /* Name of buffer, possibly nonexistent */ | 522 | case 'B': /* Name of buffer, possibly nonexistent */ |
| 517 | { | 523 | args[i] = Fread_buffer (callint_message, |
| 518 | Lisp_Object tema, temb, temc; | 524 | Fother_buffer (Fcurrent_buffer (), Qnil, Qnil), |
| 519 | 525 | Qnil); | |
| 520 | /* Get a list of buffer names (except internal buffers), and | ||
| 521 | use this list for default values. Put either current | ||
| 522 | buffer or other-buffer in front. */ | ||
| 523 | tema = Qnil; | ||
| 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); | ||
| 529 | for (; CONSP (teml); teml = XCDR (teml)) | ||
| 530 | { | ||
| 531 | temb = XCAR (teml); | ||
| 532 | if (EQ (temb, temc)) | ||
| 533 | continue; | ||
| 534 | if (NILP (temb)) | ||
| 535 | continue; | ||
| 536 | if (NILP (XBUFFER (temb)->name)) | ||
| 537 | continue; | ||
| 538 | if (SREF (XBUFFER (temb)->name, 0) == ' ') | ||
| 539 | continue; | ||
| 540 | tema = Fcons (XBUFFER (temb)->name, tema); | ||
| 541 | } | ||
| 542 | args[i] = Fread_buffer (callint_message, Fnreverse (tema), | ||
| 543 | *tem == 'b' ? Qt : Qnil); | ||
| 544 | } | ||
| 545 | break; | 526 | break; |
| 546 | 527 | ||
| 547 | case 'c': /* Character */ | 528 | case 'c': /* Character */ |