From 4fb25614ad6c5c3ff183b90cd483e98e48c1be9f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 28 Jan 2025 18:18:24 +0200 Subject: [PATCH] ; Fix last change * src/buffer.c (Fother_buffer): * lisp/frame.el (make-frame): * doc/lispref/frames.texi (Creating Frames): Fix em-dash. (cherry picked from commit 8c4a4b4eab8ac4dc26e65d552821f3f0b49c79c4) --- doc/lispref/frames.texi | 4 ++-- lisp/frame.el | 2 +- src/buffer.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 52af34389c5..5ce6fc6c5c5 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi @@ -165,8 +165,8 @@ new frame for its own reasons. By default this function does not display the current buffer in the new frame if the buffer is hidden, that is, if its name starts with a space. -In this case it will show another buffer - one that could be returned by -the function @code{other-buffer} (@pxref{Buffer List}) - instead. +In this case it will show another buffer---one that could be returned by +the function @code{other-buffer} (@pxref{Buffer List})---instead. However, if the variable @code{expose-hidden-buffer} is non-@code{nil}, this function will display the current buffer even if it is hidden. @end deffn diff --git a/lisp/frame.el b/lisp/frame.el index dc6628b2dd8..4bc8b4c05db 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -953,7 +953,7 @@ the new frame according to its own rules. By default do not display the current buffer in the new frame if the buffer is hidden, that is, if the buffer's name starts with a space. -Display another buffer - one that could be returned by `other-buffer' - +Display another buffer, one that could be returned by `other-buffer', instead. However, if `expose-hidden-buffer' is non-nil, display the current buffer even if it is hidden." (interactive) diff --git a/src/buffer.c b/src/buffer.c index ed2f14ea9c0..a4dc8b12093 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1729,8 +1729,8 @@ 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 specifies a live frame, then use that frame's buffer list instead -of the selected frame's buffer list. Do not return a hidden buffer - a -buffer whose name starts with a space. +of the selected frame's buffer list. Do not return a hidden buffer -- +a buffer whose name starts with a space. 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 -- 2.39.5