# $buffer-bname(5)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

$buffer-bname - Name of the current buffer
$buffer-fname - Name of the current buffer's file name

## SYNOPSIS

$buffer-bname BufferName
$buffer-fname FileName

## DESCRIPTION

$buffer-bname the string name of the current buffer. Buffer names are unrestricted in length, but must be unique. By default the buffer name is derived from the buffer's file name without the path. But this can lead to conflicts, caused by identical file names but different paths. In these situations a counter is appended to the end of the buffer name and is incremented until a unique buffer name is created. For example:

    File Name               Buffer Name
    _______________________________________

    /etc/file.c             file.c
    /tmp/file.c             file.c<1>
    /usr/file.c             file.c<2>

$buffer-fname contains the name of the current buffer's file name complete with path.

## SEE ALSO

change-buffer-name(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>