Mercurial > emacs
comparison lispref/files.texi @ 28608:c46c2efa3731
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 16 Apr 2000 17:21:24 +0000 |
parents | 25557ce6a3a0 |
children | cda2b6ed6aec |
comparison
equal
deleted
inserted
replaced
28607:7d75f0ff6c50 | 28608:c46c2efa3731 |
---|---|
1408 parts: the @dfn{directory name} part, and the @dfn{nondirectory} part | 1408 parts: the @dfn{directory name} part, and the @dfn{nondirectory} part |
1409 (or @dfn{file name within the directory}). Either part may be empty. | 1409 (or @dfn{file name within the directory}). Either part may be empty. |
1410 Concatenating these two parts reproduces the original file name. | 1410 Concatenating these two parts reproduces the original file name. |
1411 | 1411 |
1412 On most systems, the directory part is everything up to and including | 1412 On most systems, the directory part is everything up to and including |
1413 the last slash; the nondirectory part is the rest. The rules in VMS | 1413 the last slash (or backslash, on MS-DOS or MS-Windows); the nondirectory |
1414 syntax are complicated. | 1414 part is the rest. The rules in VMS syntax are complicated. |
1415 | 1415 |
1416 For some purposes, the nondirectory part is further subdivided into | 1416 For some purposes, the nondirectory part is further subdivided into |
1417 the name proper and the @dfn{version number}. On most systems, only | 1417 the name proper and the @dfn{version number}. On most systems, only |
1418 backup files have version numbers in their names. On VMS, every file | 1418 backup files have version numbers in their names. On VMS, every file |
1419 has a version number, but most of the time the file name actually used | 1419 has a version number, but most of the time the file name actually used |
1502 @result{} "foo.lose" | 1502 @result{} "foo.lose" |
1503 (file-name-sans-extension "big.hack/foo") | 1503 (file-name-sans-extension "big.hack/foo") |
1504 @result{} "big.hack/foo" | 1504 @result{} "big.hack/foo" |
1505 @end example | 1505 @end example |
1506 @end defun | 1506 @end defun |
1507 | |
1508 @defvar directory-sep-char | |
1509 @tindex directory-sep-char | |
1510 This variable holds the character that the system normally uses to | |
1511 separate file name components. The value is @code{?/} on GNU and Unix | |
1512 systems, and @code{?\\} on MS-DOS and MS-Windows. Note that file names | |
1513 using slashes as separators work properly in Emacs on all of these | |
1514 systems; you are not obliged to use backslashes on Microsoft systems. | |
1515 @end defvar | |
1507 | 1516 |
1508 @node Directory Names | 1517 @node Directory Names |
1509 @comment node-name, next, previous, up | 1518 @comment node-name, next, previous, up |
1510 @subsection Directory Names | 1519 @subsection Directory Names |
1511 @cindex directory name | 1520 @cindex directory name |