Mercurial > emacs
annotate lib-src/ntlib.h @ 96975:60149c696033
2008-07-24 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-region-as-html, org-export-as-html): Make
sure that calls from `org-export-region-as-html' do not do the
special check for a subtree.
* org-agenda.el (org-batch-store-agenda-views): Fix parsing bug.
* org.el (org-open-file): Use
`org-open-directory-means-index-dot-org'.
(org-open-directory-means-index-dot-org): New option.
* org.el (org-make-link-string): Remove link attributes from
description.
(org-open-at-point): Remove link attributes bevore using the path.
* org-exp.el (org-export-as-html): Handle link attributes.
* org.el (org-extract-attributes, org-attributes-to-string): New functions.
* org-table.el (org-table-to-lisp): New function.
* org.el (org-narrow-to-subtree): Do not include the final newline
into the narrowed region.
* org-agenda.el (org-agenda-custom-commands-local-options): Fixed
bug with user-define skipping condition.
* org-agenda.el (org-agenda-get-restriction-and-command): Fixed typo.
* org-exp.el (org-export-html-style-default): Automatic overflow
handling for pre fields.
(org-export-as-ascii, org-export-as-html): Change default format
for time stamp.
* org-table.el (org-table-export): Offer completion for translator
functions, and do not require a heading above the table.
* org.el (org-renumber-ordered-list, org-beginning-of-item-list):
Cater for the case of a list starting in the first line of the
buffer.
* org-publish.el (org-publish-find-title): Bug fix.
(org-publish-org-index): Implement new :index-style option.
* org-publish.el (org-publish-timestamp-filename): Use
SHA1-encoded file names in the timestamp directory.
* org-publish.el (org-publish-needed-p): Be verbose about files
published and files skipped.
* org-exp.el (org-export-preprocess-string): Swap link
normalization and inernal link targeting.
* org-publish.el (org-publish-needed-p): Create timestamp
directory when it does not exist.
* org-clock.el (org-clock-out-when-done): Doc fix.
* org.el (org-agenda-skip-unavailable-files): Doc fix.
* org-exp.el (org-export-remove-comment-blocks-and-subtrees):
Ignore case when searching for the COMMENT cookie at export time.
* org-exp.el (org-get-file-contents)
(org-get-and-remove-property): New functions.
(org-export-handle-include-files): Handle the new prefix options.
(org-export-as-html): Fix the verse environment.
* org.el (org-time=, org-time<, org-time<=, org-time>)
(org-time>=, org-time<>, org-2ft): New functions.
(org-op-to-function): Also provide for the time testing fucntions.
* org-exp.el (org-export-html-style-default): New constant.
* org-exp.el (org-export-html-style-extra): New variable.
(org-export-splice-style): New function.
* org-exp.el (org-export-plist-vars, org-export-as-html):
Implement `org-export-creator-info'.
(org-export-creator-info): New option.
* org.el (org-clock-drawer-start-re, org-clock-drawer-end-re)
(org-property-drawer-re, org-clock-drawer-re): New constants.
* org-exp.el (org-icalendar-use-deadline)
(org-icalendar-use-scheduled): New options.
(org-icalendar-include-todo): Default changed to t.
(org-print-icalendar-entries): Implement better utilization of
scheduling and deadline time stamps.
(org-export-target-internal-links, org-export-as-html): Allow file
lines without the "file:" prefix if the file path is an absolute
path or starts with ".".
* org-clock.el (org-clocktable-shift): Also undertand yesterday,
lastweek etc.
(org-clock-special-range): Also undertand yesterday, lastweek etc.
* org.el (org-agenda-skip-archived-trees): Docstring now
discourages using this.
(org-scan-tags): Check for org-agenda-archives-mode.
(org-map-entries): Make sure org-agenda-archives-mode is nil.
(org-agenda-files): Functionality of second arg changed.
* org-agenda.el (org-agenda-archives-mode): New variable
(org-write-agenda, org-prepare-agenda, org-agenda-list)
(org-search-view, org-todo-list, org-tags-view)
(org-agenda-list-stuck-projects): Call `org-agenda-files' with
`ifmode' argument.
(org-agenda-quit): Reset the archives mode.
(org-agenda-archives-mode): New command.
(org-agenda-set-mode-name): Include archives info.
* org.el (org-paste-subtree): Make sure the yanked headline is
visible if it was yanked at a visible point.
(org-move-item-up): Fix the bug with moving white space at the end
of the item.
(org-show-empty-lines-in-parent): New function.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Thu, 24 Jul 2008 13:59:56 +0000 |
parents | b5d7774ed003 |
children | a9f7e446141d |
rev | line source |
---|---|
15139 | 1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT. |
94828
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
2 Copyright (C) 1994, 2002, 2003, 2004, 2005, 2006, 2007, |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
3 2008 Free Software Foundation, Inc. |
15139 | 4 |
94828
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
5 This file is part of GNU Emacs. |
15139 | 6 |
94828
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
8 it under the terms of the GNU General Public License as published by |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
10 (at your option) any later version. |
15139 | 11 |
94828
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
12 GNU Emacs is distributed in the hope that it will be useful, |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
15 GNU General Public License for more details. |
15139 | 16 |
94828
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
3a4bc081639c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79748
diff
changeset
|
19 |
15139 | 20 |
21 #include <pwd.h> | |
22 #include <malloc.h> | |
23 | |
19232 | 24 /* Include these headers now so we don't have to worry about include |
25 order dependencies in common source files. */ | |
26 #include <direct.h> | |
27 #include <io.h> | |
28 #include <stdio.h> | |
29 | |
30 #ifdef sleep | |
31 #undef sleep | |
32 #endif | |
31082
9865d23be9e7
(WIN32): Remove unnecessary definition.
Andrew Innes <andrewi@gnu.org>
parents:
22315
diff
changeset
|
33 void sleep(unsigned long seconds); |
15674 | 34 char *getwd (char *dir); |
15139 | 35 int getppid(void); |
36 char * getlogin (); | |
37 char * cuserid (char * s); | |
38 int getuid (); | |
39 int setuid (int uid); | |
40 struct passwd * getpwuid (int uid); | |
41 char * getpass (const char * prompt); | |
42 int fchown (int fd, int uid, int gid); | |
43 | |
44 #ifndef BSTRING | |
45 #define bzero(b, l) memset(b, 0, l) | |
46 #define bcopy(s, d, l) memcpy(d, s, l) | |
47 #define bcmp(a, b, l) memcmp(a, b, l) | |
48 #endif | |
49 | |
22315 | 50 /* redirect or undo interceptions created by config.h */ |
19232 | 51 #undef access |
52 #define access _access | |
53 #undef chdir | |
54 #define chdir _chdir | |
55 #undef chmod | |
56 #define chmod _chmod | |
57 #undef close | |
58 #define close _close | |
59 #undef creat | |
60 #define creat _creat | |
61 #undef ctime | |
62 #undef dup | |
63 #define dup _dup | |
64 #undef dup2 | |
65 #define dup2 _dup2 | |
66 #undef fopen | |
67 #undef mkdir | |
68 #define mkdir _mkdir | |
69 #undef mktemp | |
70 #define mktemp _mktemp | |
71 #undef open | |
72 #define open _open | |
73 #undef pipe | |
74 #define pipe _pipe | |
75 #undef read | |
76 #define read _read | |
77 #undef rename | |
78 #undef rmdir | |
79 #define rmdir _rmdir | |
80 #undef unlink | |
81 #define unlink _unlink | |
82 #undef write | |
83 #define write _write | |
84 | |
85 /* map to MSVC names */ | |
86 #define execlp _execlp | |
87 #define execvp _execvp | |
88 #define fdopen _fdopen | |
63018
e50e8a19d938
(fileno): Don't define if already defined.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
89 #ifndef fileno |
19232 | 90 #define fileno _fileno |
63018
e50e8a19d938
(fileno): Don't define if already defined.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
91 #endif |
19232 | 92 #define getcwd _getcwd |
93 #define getw _getw | |
94 #define getpid _getpid | |
95 #define isatty _isatty | |
96 #define locking _locking | |
97 #define logb _logb | |
98 #define _longjmp longjmp | |
99 #define lseek _lseek | |
100 #define popen _popen | |
101 #define pclose _pclose | |
102 #define umask _umask | |
103 #define utime _utime | |
104 #define index strchr | |
105 #define rindex strrchr | |
106 | |
22315 | 107 /* Make standard winsock definitions available if needed. */ |
108 #undef _WINSOCKAPI_ | |
31082
9865d23be9e7
(WIN32): Remove unnecessary definition.
Andrew Innes <andrewi@gnu.org>
parents:
22315
diff
changeset
|
109 #undef _WINSOCK_H |
22315 | 110 |
15139 | 111 /* end of ntlib.h */ |
52401 | 112 |
113 /* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28 | |
114 (do not change this comment) */ |