Mercurial > emacs
comparison src/buffer.c @ 1348:f6ab9d1e1709
(Fkill_buffer): Pass 2nd arg to Fother_buffer.
(Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer):
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 06 Oct 1992 00:03:29 +0000 |
| parents | 2660a7053836 |
| children | c090f7dcfd27 |
comparison
equal
deleted
inserted
replaced
| 1347:ac3a893b9bb9 | 1348:f6ab9d1e1709 |
|---|---|
| 691 /* Make this buffer not be current. | 691 /* Make this buffer not be current. |
| 692 In the process, notice if this is the sole visible buffer | 692 In the process, notice if this is the sole visible buffer |
| 693 and give up if so. */ | 693 and give up if so. */ |
| 694 if (b == current_buffer) | 694 if (b == current_buffer) |
| 695 { | 695 { |
| 696 tem = Fother_buffer (buf); | 696 tem = Fother_buffer (buf, Qnil); |
| 697 Fset_buffer (tem); | 697 Fset_buffer (tem); |
| 698 if (b == current_buffer) | 698 if (b == current_buffer) |
| 699 return Qnil; | 699 return Qnil; |
| 700 } | 700 } |
| 701 | 701 |
| 795 tem = Fwindow_dedicated_p (selected_window); | 795 tem = Fwindow_dedicated_p (selected_window); |
| 796 if (!NILP (tem)) | 796 if (!NILP (tem)) |
| 797 error ("Cannot switch buffers in a dedicated window"); | 797 error ("Cannot switch buffers in a dedicated window"); |
| 798 | 798 |
| 799 if (NILP (bufname)) | 799 if (NILP (bufname)) |
| 800 buf = Fother_buffer (Fcurrent_buffer ()); | 800 buf = Fother_buffer (Fcurrent_buffer (), Qnil); |
| 801 else | 801 else |
| 802 buf = Fget_buffer_create (bufname); | 802 buf = Fget_buffer_create (bufname); |
| 803 Fset_buffer (buf); | 803 Fset_buffer (buf); |
| 804 if (NILP (norecord)) | 804 if (NILP (norecord)) |
| 805 record_buffer (buf); | 805 record_buffer (buf); |
| 820 (bufname, other) | 820 (bufname, other) |
| 821 Lisp_Object bufname, other; | 821 Lisp_Object bufname, other; |
| 822 { | 822 { |
| 823 register Lisp_Object buf; | 823 register Lisp_Object buf; |
| 824 if (NILP (bufname)) | 824 if (NILP (bufname)) |
| 825 buf = Fother_buffer (Fcurrent_buffer ()); | 825 buf = Fother_buffer (Fcurrent_buffer (), Qnil); |
| 826 else | 826 else |
| 827 buf = Fget_buffer_create (bufname); | 827 buf = Fget_buffer_create (bufname); |
| 828 Fset_buffer (buf); | 828 Fset_buffer (buf); |
| 829 record_buffer (buf); | 829 record_buffer (buf); |
| 830 Fselect_window (Fdisplay_buffer (buf, other)); | 830 Fselect_window (Fdisplay_buffer (buf, other)); |
| 943 buf = buf1; | 943 buf = buf1; |
| 944 } | 944 } |
| 945 | 945 |
| 946 /* Remove it from the screen. */ | 946 /* Remove it from the screen. */ |
| 947 if (EQ (buf, XWINDOW (selected_window)->buffer)) | 947 if (EQ (buf, XWINDOW (selected_window)->buffer)) |
| 948 Fswitch_to_buffer (Fother_buffer (buf), Qnil); | 948 Fswitch_to_buffer (Fother_buffer (buf, Qnil), Qnil); |
| 949 | 949 |
| 950 /* Move it to the end of the buffer list. */ | 950 /* Move it to the end of the buffer list. */ |
| 951 { | 951 { |
| 952 register Lisp_Object aelt, link; | 952 register Lisp_Object aelt, link; |
| 953 | 953 |
