Mercurial > emacs
comparison lispref/os.texi @ 26242:50d1336a4877
Patch from rms.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 29 Oct 1999 12:09:29 +0000 |
parents | df0efa93750b |
children | 6119687f6888 |
comparison
equal
deleted
inserted
replaced
26241:c3bf3747f8ae | 26242:50d1336a4877 |
---|---|
83 @samp{-no-site-file} was specified. The library's file name is usually | 83 @samp{-no-site-file} was specified. The library's file name is usually |
84 @file{site-start.el}. | 84 @file{site-start.el}. |
85 @cindex @file{site-start.el} | 85 @cindex @file{site-start.el} |
86 | 86 |
87 @item | 87 @item |
88 It loads your init file (usually @file{~/.emacs}), unless @samp{-q} or | 88 It loads your init file (usually @file{~/.emacs}), unless @samp{-q}, |
89 @samp{-batch} was specified on the command line. The @samp{-u} option | 89 @samp{-no-init-file}, or @samp{-batch} was specified on the command line. |
90 can specify another user whose home directory should be used instead of | 90 The @samp{-u} option can specify another user whose home directory |
91 @file{~}. | 91 should be used instead of @file{~}. |
92 | 92 |
93 @item | 93 @item |
94 It loads the library @file{default}, unless @code{inhibit-default-init} | 94 It loads the library @file{default}, unless @code{inhibit-default-init} |
95 is non-@code{nil}. (This is not done in @samp{-batch} mode or if | 95 is non-@code{nil}. (This is not done in @samp{-batch} mode or if |
96 @samp{-q} was specified on the command line.) The library's file name | 96 @samp{-q} was specified on the command line.) The library's file name |
983 dates before the Gregorian calendar was introduced. Year numbers count | 983 dates before the Gregorian calendar was introduced. Year numbers count |
984 the number of years since the year 1 B.C., and do not skip zero as | 984 the number of years since the year 1 B.C., and do not skip zero as |
985 traditional Gregorian years do; for example, the year number @minus{}37 | 985 traditional Gregorian years do; for example, the year number @minus{}37 |
986 represents the Gregorian year 38 B.C@. | 986 represents the Gregorian year 38 B.C@. |
987 | 987 |
988 @defun format-time-string format-string time | 988 @defun format-time-string format-string &optional time universal |
989 This function converts @var{time} to a string according to | 989 This function converts @var{time} (or the current time, if @var{time} is |
990 @var{format-string}. The argument @var{format-string} may contain | 990 omitted) to a string according to @var{format-string}. The argument |
991 @samp{%}-sequences which say to substitute parts of the time. Here is a | 991 @var{format-string} may contain @samp{%}-sequences which say to |
992 table of what the @samp{%}-sequences mean: | 992 substitute parts of the time. Here is a table of what the |
993 @samp{%}-sequences mean: | |
993 | 994 |
994 @table @samp | 995 @table @samp |
995 @item %a | 996 @item %a |
996 This stands for the abbreviated name of the day of week. | 997 This stands for the abbreviated name of the day of week. |
997 @item %A | 998 @item %A |
1071 | 1072 |
1072 For example, @samp{%S} specifies the number of seconds since the minute; | 1073 For example, @samp{%S} specifies the number of seconds since the minute; |
1073 @samp{%03S} means to pad this with zeros to 3 positions, @samp{%_3S} to | 1074 @samp{%03S} means to pad this with zeros to 3 positions, @samp{%_3S} to |
1074 pad with spaces to 3 positions. Plain @samp{%3S} pads with zeros, | 1075 pad with spaces to 3 positions. Plain @samp{%3S} pads with zeros, |
1075 because that is how @samp{%S} normally pads to two positions. | 1076 because that is how @samp{%S} normally pads to two positions. |
1077 | |
1078 The characters @samp{E} and @samp{O} act as modifiers when used between | |
1079 @samp{%} and one of the letters in the table above. @samp{E} specifies | |
1080 using the locale's ``alternative'' version of a format, as specified by | |
1081 POSIX. @samp{E} is allowed in @samp{%Ec}, @samp{%EC}, @samp{%Ex}, | |
1082 @samp{%EX}, @samp{%Ey}, and @samp{%EY}. | |
1083 | |
1084 @samp{O} means to use the current locale's number symbols to format each | |
1085 number, instead of the ordinary @sc{ascii} digits. It is allowed with | |
1086 most letters. | |
1087 | |
1088 If @var{universal} is non-@code{nil}, that means to describe the time as | |
1089 Universal Time; @code{nil} means describe it using what Emacs believes | |
1090 is the local time zone (see @code{current-time-zone}). | |
1076 @end defun | 1091 @end defun |
1077 | 1092 |
1078 @defun decode-time time | 1093 @defun decode-time time |
1079 This function converts a time value into calendrical information. The | 1094 This function converts a time value into calendrical information. The |
1080 return value is a list of nine elements, as follows: | 1095 return value is a list of nine elements, as follows: |
1564 100 input events, not counting events generated by keyboard macros. | 1579 100 input events, not counting events generated by keyboard macros. |
1565 (These are excluded because they are less interesting for debugging; it | 1580 (These are excluded because they are less interesting for debugging; it |
1566 should be enough to see the events that invoked the macros.) | 1581 should be enough to see the events that invoked the macros.) |
1567 @end defun | 1582 @end defun |
1568 | 1583 |
1569 @deffn Command open-dribble-file filename | 1584 @deffn Command open-dribble-file filename |
1570 @cindex dribble file | 1585 @cindex dribble file |
1571 This function opens a @dfn{dribble file} named @var{filename}. When a | 1586 This function opens a @dfn{dribble file} named @var{filename}. When a |
1572 dribble file is open, each input event from the keyboard or mouse (but | 1587 dribble file is open, each input event from the keyboard or mouse (but |
1573 not those from keyboard macros) is written in that file. A | 1588 not those from keyboard macros) is written in that file. A |
1574 non-character event is expressed using its printed representation | 1589 non-character event is expressed using its printed representation |