next-buffer - Switch to the next buffer
find-buffer - Switch to the next buffer
next-buffer (C-x x)
n find-buffer "buffer-name" (C-x b)
next-buffer switches to the next buffer in the buffer list in the current window.
find-buffer switches to buffer "buffer-name" in the current window. If the buffer does not exist and a zero argument n is supplied then the command fails. If the buffer does not exist but no argument or a +ve argument n is specified then a new buffer is created, at which point the file-hook is evaluated.
If a -ve argument n is given to find-buffer then the buffer will be hidden. Any window displaying "buffer-name" will find another buffer to display. This functionality is often used with the hide(2m) buffer mode.
If the current buffer has an $buffer-ehook command set then this command is executed before the new buffer is switched in. If the new buffer has a $buffer-bhook command set then this command is automatically executed after the new buffer is switched in but before control returns to the user.
(c) Copyright JASSPA 1999
Last Modified: 1998/07/10
Generated On: 1999/12/01