Next: , Previous: , Up: Buffer Names and File Names   [Index]


7.4.5.2 rename-buffer

Function: rename-buffer newname &optional unique

This function renames the current buffer to NEWNAME.

Ordinarily, ‘rename-buffer’ signals an error if NEWNAME is already in use. However, if UNIQUE is non-‘nil’, it modifies NEWNAME to make a name that is not in use.

This function returns the name actually given to the buffer.

Also rename-uniquely