Mercurial > emacs
annotate lib-src/ntlib.h @ 54754:fe0b01c2265f
(Info-history): Doc fix.
(Info-history-list): New var.
(info-xref): Change magenta4 to blue, remove bold for dark and
light backgrounds, change bold to underline for non-color classes.
(info-xref-visited): New face.
(Info-fontify-visited-nodes): New custom.
(Info-hide-note-references): Add new value `hide'. Doc fix.
(Info-reference-name): New var.
(Info-selection-hook): New custom.
(Info-edit-mode-hook): New var.
(Info-find-file): New fun.
(Info-find-node): Move part of code to Info-find-file.
(Info-find-node-2): Add anchors to Info-history-list. Move point
to the place with the reference name if name is defined.
(Info-select-node): Add current node to Info-history-list.
(Info-goto-node): Switch to *info* from *info-history* *info-toc*.
(Info-search-whitespace-regexp): New custom.
(Info-search-case-fold): New var.
(Info-search): Add "case-sensitively" to the prompt. Use
Info-search-whitespace-regexp. Set Info-search-case-fold.
(Info-search-case-sensitively, Info-search-next): New fun.
(Info-up): Move point to the menu item of the current node.
(Info-history): New fun. Add *info-history* to same-window-buffer-names.
(Info-toc): New fun. Add *info-toc* to same-window-buffer-names.
(Info-insert-toc): New fun.
(Info-build-toc): New fun.
(Info-follow-reference): Add new arg `fork'. Doc fix.
Replace [ \n\t]* by [ \n\t]+ in the *Note regexp. For references
with the same name prefer the reference closest to point.
(Info-next-reference): Replace * by + in the *Note regexp.
Add regexp for http:// and ftp://. Skip the *Note prefix.
(Info-prev-reference): Replace * by + in the *Note regexp.
Add regexp for http:// and ftp://. Skip the *Note prefix.
(Info-follow-nearest-node): Add new arg `fork'.
(Info-try-follow-nearest-node): Add new arg `fork'.
Call browse-url for http:// and ftp:// references.
Set Info-reference-name for index entries.
(Info-mode-menu): Add menu items for Info-search-case-sensitively,
Info-search-next, Info-history, Info-toc, clone-buffer.
(Info-menu-update): Replace * by + in the *Note regexp.
(Info-mode): Add documentation for Info-history, Info-toc,
Info-search-case-sensitively, Info-search-next, clone-buffer.
(Info-fontify-menu-headers): Remove fun. Move code to
Info-fontify-node.
(Info-fontify-node): Add docstring. Add local vars
fontify-visited-p and not-fontified-p. If not-fontified-p is t
then fontify header line, titles, menu headers, http and ftp
references, refill paragraphs. If not-fontified-p is t or
fontify-visited-p is t then fontify cross references, menu items.
Fontify menu headers. Fontify http and ftp references. Change
regexp for cross references to require whitespace after *Note, add
matching groups for file and node names. Remove hack for quote.
Use display property for Info-hide-note-references=t. Use fifth
or fourth match for help-echo. Display visited nodes in a
different face. Unhide file names of external references. Unhide
newlines. Display visited menu items in a different face.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Thu, 08 Apr 2004 03:42:59 +0000 |
parents | 695cf19ef79e |
children | e50e8a19d938 375f2633d815 |
rev | line source |
---|---|
15139 | 1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT. |
2 Copyright (C) 1994 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify it | |
7 under the terms of the GNU General Public License as published by the | |
8 Free Software Foundation; either version 2, or (at your option) any later | |
9 version. | |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
14 more details. | |
15 | |
15742 | 16 You should have received a copy of the GNU General Public License |
17 along with GNU Emacs; see the file COPYING. If not, write to the | |
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. | |
15139 | 20 |
21 */ | |
22 | |
23 #include <pwd.h> | |
24 #include <malloc.h> | |
25 | |
19232 | 26 /* Include these headers now so we don't have to worry about include |
27 order dependencies in common source files. */ | |
28 #include <direct.h> | |
29 #include <io.h> | |
30 #include <stdio.h> | |
31 | |
32 #ifdef sleep | |
33 #undef sleep | |
34 #endif | |
31082
9865d23be9e7
(WIN32): Remove unnecessary definition.
Andrew Innes <andrewi@gnu.org>
parents:
22315
diff
changeset
|
35 void sleep(unsigned long seconds); |
15674 | 36 char *getwd (char *dir); |
15139 | 37 int getppid(void); |
38 char * getlogin (); | |
39 char * cuserid (char * s); | |
40 int getuid (); | |
41 int setuid (int uid); | |
42 struct passwd * getpwuid (int uid); | |
43 char * getpass (const char * prompt); | |
44 int fchown (int fd, int uid, int gid); | |
45 | |
46 #ifndef BSTRING | |
47 #define bzero(b, l) memset(b, 0, l) | |
48 #define bcopy(s, d, l) memcpy(d, s, l) | |
49 #define bcmp(a, b, l) memcmp(a, b, l) | |
50 #endif | |
51 | |
22315 | 52 /* redirect or undo interceptions created by config.h */ |
19232 | 53 #undef access |
54 #define access _access | |
55 #undef chdir | |
56 #define chdir _chdir | |
57 #undef chmod | |
58 #define chmod _chmod | |
59 #undef close | |
60 #define close _close | |
61 #undef creat | |
62 #define creat _creat | |
63 #undef ctime | |
64 #undef dup | |
65 #define dup _dup | |
66 #undef dup2 | |
67 #define dup2 _dup2 | |
68 #undef fopen | |
69 #undef mkdir | |
70 #define mkdir _mkdir | |
71 #undef mktemp | |
72 #define mktemp _mktemp | |
73 #undef open | |
74 #define open _open | |
75 #undef pipe | |
76 #define pipe _pipe | |
77 #undef read | |
78 #define read _read | |
79 #undef rename | |
80 #undef rmdir | |
81 #define rmdir _rmdir | |
82 #undef unlink | |
83 #define unlink _unlink | |
84 #undef write | |
85 #define write _write | |
86 | |
87 /* map to MSVC names */ | |
88 #define execlp _execlp | |
89 #define execvp _execvp | |
90 #define fcloseall _fcloseall | |
91 #define fdopen _fdopen | |
92 #define fgetchar _fgetchar | |
93 #define fileno _fileno | |
94 #define flushall _flushall | |
95 #define fputchar _fputchar | |
96 #define getcwd _getcwd | |
97 #define getw _getw | |
98 #define getpid _getpid | |
99 #define isatty _isatty | |
100 #define locking _locking | |
101 #define logb _logb | |
102 #define _longjmp longjmp | |
103 #define lseek _lseek | |
104 #define popen _popen | |
105 #define pclose _pclose | |
106 #define putw _putw | |
107 #define umask _umask | |
108 #define utime _utime | |
109 #define index strchr | |
110 #define rindex strrchr | |
111 | |
22315 | 112 /* Make standard winsock definitions available if needed. */ |
113 #undef _WINSOCKAPI_ | |
31082
9865d23be9e7
(WIN32): Remove unnecessary definition.
Andrew Innes <andrewi@gnu.org>
parents:
22315
diff
changeset
|
114 #undef _WINSOCK_H |
22315 | 115 |
15139 | 116 /* end of ntlib.h */ |
52401 | 117 |
118 /* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28 | |
119 (do not change this comment) */ |