(Frename_buffer): When the current buffer is already named NAME, don't
authorRoland McGrath <roland@gnu.org>
Sat, 20 Nov 1993 01:41:51 +0000 (01:41 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 20 Nov 1993 01:41:51 +0000 (01:41 +0000)
commitc059b5eaa119e42de43b4fad3408b58f37a49147
treed1171c31dcbcee9a2fba8d5538db3d31d3f7cfcd
parent4c7e5f092db7443c32c13bf523fd74086a13fefd
(Frename_buffer): When the current buffer is already named NAME, don't
short-circuit and just return unless UNIQUE is nil.  This makes passing
UNIQUE=t equivalent to (rename-buffer (generate-new-buffer-name NAME)).
This is useful way to rename the buffer automatically so you can create
another with the original name.
src/buffer.c