# file-attrib(3)

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

## NAME

file-attrib - Set the current buffers system file attributes

## SYNOPSIS

file-attrib

## DESCRIPTION

file-attrib opens a dialog enabling the user to change the system properties of the current buffer's file. Top of the dialog give the current buffer name and its file name. The `Save Changes` button writes the current buffer out with any current edits and changes to its file attributes. The `Ok` button closes the file-attrib dialog, any changes made to the file attributes will be applied next time the buffer is written.

The type allow the changing between UNIX, MS Windows and DOS text file formats. UNIX has a single new line character ('`\n`') where as Windows and Dos have a double new line character ('`\r\n`'). Also a Dos text file is terminated with a `C-z` (0x1A) character which the other two do not. These attribute are set in MicroEmacs by using buffer modes cr(2m), lf(2m) and ctrlz(2m).

The central part of the dialog contains system dependent attributes which are defined as follows:

UNIX Platforms

Allow the setting of user, group and global, read, write and execute permissions, see man pages on chmod(1) for more information. This is a front end to setting the variable $buffer-fmod(5).

Win32 Platforms

Allow the setting of MS Windows file attributes, i.e. read-only, hidden, archive etc. Note that the directory attribute is displayed but cannot be altered. This is a front end to setting the variable $buffer-fmod(5).

DOS Platform

Allow the setting of MS Dos file attributes, i.e. read-only, hidden, archive etc. Note that the directory attribute is displayed but cannot be altered.

## NOTES

file-attrib is a macro implemented in `fattrib.emf`.

## SEE ALSO

find-file(2), write-buffer(2), cr(2m), lf(2m), ctrlz(2m), $buffer-fmod(5).

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

</HMTL>