Subject: Re: bug#22150: 25.1.50; (bury-buffer (current-buffer)) does NOT bury buffer

From: Andreas Schwab <[email-masked]>
Date: Sat, 12 Dec 2015 12:14:05 +0100

Marco Wahl <[email-masked]> writes:

> Evaluate (bury-buffer (current-buffer)) in a buffer, e.g. *scratch*.
>
> Expectation: The buffer has been buried.
> Reality: The buffer has NOT been buried.

The buffer is buried, but not removed from the selected window, as
documented:

"Also, if BUFFER-OR-NAME is nil or omitted, remove the current buffer
from the selected window if it is displayed there."

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."