Mercurial > emacs
comparison src/buffer.c @ 108880:f4a583b69ffa
* src/buffer.c (Fother_buffer): Add CHECK_FRAME.
(Fswitch_to_buffer): Remove unused variable `err'.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Thu, 03 Jun 2010 21:50:00 +0300 |
parents | 511da81b16c5 |
children | d9257436d2b1 |
comparison
equal
deleted
inserted
replaced
108879:30e304f37b04 | 108880:f4a583b69ffa |
---|---|
1298 notsogood = Qnil; | 1298 notsogood = Qnil; |
1299 | 1299 |
1300 if (NILP (frame)) | 1300 if (NILP (frame)) |
1301 frame = selected_frame; | 1301 frame = selected_frame; |
1302 | 1302 |
1303 CHECK_FRAME (frame); | |
1304 | |
1303 tail = Vbuffer_alist; | 1305 tail = Vbuffer_alist; |
1304 pred = frame_buffer_predicate (frame); | 1306 pred = frame_buffer_predicate (frame); |
1305 | 1307 |
1306 /* Consider buffers that have been seen in the selected frame | 1308 /* Consider buffers that have been seen in the selected frame |
1307 before other buffers. */ | 1309 before other buffers. */ |
1783 within a Lisp program! Use `set-buffer' instead. That avoids | 1785 within a Lisp program! Use `set-buffer' instead. That avoids |
1784 messing with the window-buffer correspondences. */) | 1786 messing with the window-buffer correspondences. */) |
1785 (buffer_or_name, norecord) | 1787 (buffer_or_name, norecord) |
1786 Lisp_Object buffer_or_name, norecord; | 1788 Lisp_Object buffer_or_name, norecord; |
1787 { | 1789 { |
1788 char *err; | |
1789 | |
1790 if (EQ (buffer_or_name, Fwindow_buffer (selected_window))) | 1790 if (EQ (buffer_or_name, Fwindow_buffer (selected_window))) |
1791 { | 1791 { |
1792 /* Basically a NOP. Avoid signalling an error in the case where | 1792 /* Basically a NOP. Avoid signalling an error in the case where |
1793 the selected window is dedicated, or a minibuffer. */ | 1793 the selected window is dedicated, or a minibuffer. */ |
1794 | 1794 |