emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0c5fa36: Fix handling and doc-string of FRAME arg o


From: Martin Rudalics
Subject: [Emacs-diffs] master 0c5fa36: Fix handling and doc-string of FRAME arg of `other-buffer' (Bug#20533)
Date: Wed, 20 May 2015 08:36:45 +0000

branch: master
commit 0c5fa361e14fc5a52da62939178b720224aaa4fe
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Fix handling and doc-string of FRAME arg of `other-buffer' (Bug#20533)
    
    * src/buffer.c (Fother_buffer): Argument FRAME must denote a live frame.
    Fix doc-string (Bug#20533).
---
 src/buffer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/buffer.c b/src/buffer.c
index b09676c..148d077 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1467,15 +1467,15 @@ DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 
3, 0,
 Buffers not visible in windows are preferred to visible buffers, unless
 optional second argument VISIBLE-OK is non-nil.  Ignore the argument
 BUFFER unless it denotes a live buffer.  If the optional third argument
-FRAME is non-nil, use that frame's buffer list instead of the selected
-frame's buffer list.
+FRAME specifies a live frame, then use that frame's buffer list instead
+of the selected frame's buffer list.
 
 The buffer is found by scanning the selected or specified frame's buffer
 list first, followed by the list of all buffers.  If no other buffer
 exists, return the buffer `*scratch*' (creating it if necessary).  */)
   (Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame)
 {
-  struct frame *f = decode_any_frame (frame);
+  struct frame *f = decode_live_frame (frame);
   Lisp_Object tail = f->buffer_list, pred = f->buffer_predicate;
   Lisp_Object buf, notsogood = Qnil;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]