aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 347f27edc3a..24286610570 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1543,17 +1543,11 @@ list first, followed by the list of all buffers. If no other buffer
1543exists, return the buffer `*scratch*' (creating it if necessary). */) 1543exists, return the buffer `*scratch*' (creating it if necessary). */)
1544 (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) 1544 (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame)
1545{ 1545{
1546 Lisp_Object tail, buf, pred; 1546 struct frame *f = decode_any_frame (frame);
1547 Lisp_Object notsogood = Qnil; 1547 Lisp_Object tail = f->buffer_list, pred = f->buffer_predicate;
1548 Lisp_Object buf, notsogood = Qnil;
1548 1549
1549 if (NILP (frame))
1550 frame = selected_frame;
1551
1552 CHECK_FRAME (frame);
1553
1554 pred = frame_buffer_predicate (frame);
1555 /* Consider buffers that have been seen in the frame first. */ 1550 /* Consider buffers that have been seen in the frame first. */
1556 tail = XFRAME (frame)->buffer_list;
1557 for (; CONSP (tail); tail = XCDR (tail)) 1551 for (; CONSP (tail); tail = XCDR (tail))
1558 { 1552 {
1559 buf = XCAR (tail); 1553 buf = XCAR (tail);