Mercurial > emacs
annotate src/ecrt0.c @ 100267:c851df8e004e
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-id.el (org-id-locations-file): Wrap file name with
`convert-standard-filename'.
(org-id-files): New variable.
(org-id-use-hash): New option.
(org-id-update-id-locations): Also search in all files current
listed in `org-id-files'. Convert the resulting alist to a hash
if the user customation says so.
(org-id-locations-save): Handle he case if `org-id-locations' is a
hash.
(org-id-locations-load): Convert the alist to a hash.
(org-id-add-location): Handle the hast case.
(kill-emacs-hook): Make sure id locations are saved when Emacs is
exited.
(org-id-hash-to-alist, org-id-alist-to-hash)
(org-id-paste-tracker): New functions.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-agenda-goto-calendar): Remove duplicate let
bindings of calendar variables.
* org-table.el (org-table-find-row-type): Renamed from
`org-find-row-type'.
(org-table-rewrite-old-row-references): Renamed from
`org-rewrite-old-row-references'.
(org-table-shift-refpart): Renamed from `org-shift-refpart'.
(org-table-cleanup-narrow-column-properties): Renamed from
`org-cleanup-narrow-column-properties'.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-table.el (org-find-row-type): New arguments DESC and CLINE,
for better error messages.
(org-table-get-descriptor-line): Supply the new arguments to
`org-find-row-type'.
(org-table-error-on-row-ref-crossing-hline): New option.
* org.el (org-target-link-regexp): Make buffer-local.
(org-move-subtree-down): Fix bug with trees at beginning of
buffer.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-faces.el (org-set-tag-faces): New function.
(org-tags-special-faces-re): New variable.
* org.el (org-font-lock-add-tag-faces, org-get-tag-face): New functions.
* org-faces.el (org-tag-faces): New option.
(org-tag): Mention `org-tag-faces' in the docstring.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-html-style-default): Implement new
quoting.
* org-jsinfo.el (org-infojs-template): Implement new quoting.
* org-w3m.el (w3m-minor-mode-hook): Also add the special copy
command to the `w3m-minor-mode-map'.
* org-archive.el (org-archive-to-archive-sibling): Protect
`this-command' to avoid appending kills during archiving.
* org-exp.el (org-export-with-priority): New variable.
(org-export-add-options-to-plist): Use `org-export-plist-vars'
instead of internal list of strings and properties.
(org-print-icalendar-entries): Retrieve the location property with
inheritance.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-with-todo-keywords): New option.
(org-export-plist-vars): Include also the keys for the #+OPTIONS
line.
(org-default-export-plist, org-export-add-options-to-plist)
(org-export-as-ascii, org-export-as-html): Use the new structure
of `org-export-plist-vars'.
* org.el (org-map-entries): Return all values.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-matcher-time): Recognize more special values.
* org-gnus.el (fboundp): Fix defvaralias for XEmacs.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-tags-exclude-from-inheritance): New option.
(org-tag-inherit-p, org-remove-uniherited-tags): Respect
`org-tags-exclude-from-inheritance'.
* org-agenda.el (org-agenda-show-inherited-tags): New option.
(org-format-agenda-item): Add inherited tags to the agenda line
string, and make sure that properties are kept when downcasing the
tags list.
(org-agenda-add-inherited-tags): New function.
(org-downcase-keep-props): New function.
* org.el (org-scan-tags): Mark inherited tags with a text
property.
(org-get-tags-at): Mark inherited tags with a text property.
(org-add-prop-inherited): New function.
* org-agenda.el (org-agenda-add-inherited-tags): New function.
(org-agenda-show-inherited-tags): New option.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-modules): Add org-w3m to the default modules.
* org-table.el (orgtbl-self-insert-command): Make S-SPC work in
orgtbl-mode.
(orgtabl-create-or-convert-from-region): New command.
* org-exp.el (org-export-as-ascii): Remove the handling of
targets.
(org-export-ascii-preprocess): Handle targets already in this
function.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-timer.el (org-timer-start-time): Define this variable.
(org-timer-item): Make argument optional.
* org-list.el (org-insert-item): Automatically insert a timer item
if the current list is a timer list.
* org-timer.el: New file.
* org-publish.el (org-publish-org-index): Only exclude the index
file in the main directory from being added to the site-map.
(org-publish-get-project-from-filename): If the current project is
a component, start publishing from the parent project.
2008-12-07 Carsten Dominik <carsten.dominik@gmail.com>
* org-table.el (orgtbl-ret): Fix RET at beginning-of-buffer.
* org-publish.el (org-publish-org-index): Improve removal of
temporary buffers.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Sun, 07 Dec 2008 18:36:02 +0000 |
parents | ea3fb04613c1 |
children | e038c1a8307c |
rev | line source |
---|---|
25844 | 1 /* C code startup routine. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1985, 1986, 1992, 2001, 2002, 2003, 2004, |
79759 | 3 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
25844 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
94963
8971ddf55736
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91702
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
25844 | 8 it under the terms of the GNU General Public License as published by |
94963
8971ddf55736
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91702
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
8971ddf55736
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91702
diff
changeset
|
10 (at your option) any later version. |
25844 | 11 |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
94963
8971ddf55736
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91702
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
25844 | 19 |
20 | |
21 /* The standard Vax 4.2 Unix crt0.c cannot be used for Emacs | |
22 because it makes `environ' an initialized variable. | |
23 It is easiest to have a special crt0.c on all machines | |
24 though I don't know whether other machines actually need it. */ | |
25 | |
26 /* On the vax and 68000, in BSD4.2 and USG5.2, | |
27 this is the data format on startup: | |
28 (vax) ap and fp are unpredictable as far as I know; don't use them. | |
29 sp -> word containing argc | |
30 word pointing to first arg string | |
31 [word pointing to next arg string]... 0 or more times | |
32 0 | |
33 Optionally: | |
34 [word pointing to environment variable]... 1 or more times | |
35 ... | |
36 0 | |
37 And always: | |
38 first arg string | |
39 [next arg string]... 0 or more times | |
40 */ | |
41 | |
42 #ifdef emacs | |
43 #include <config.h> | |
44 #endif | |
45 | |
46 /* ******** WARNING ******** | |
47 Do not insert any data definitions before data_start! | |
48 Since this is the first file linked, the address of the following | |
49 variable should correspond to the start of initialized data space. | |
50 On some systems this is a constant that is independent of the text | |
51 size for shared executables. On others, it is a function of the | |
52 text size. In short, this seems to be the most portable way to | |
53 discover the start of initialized data space dynamically at runtime, | |
54 for either shared or unshared executables, on either swapping or | |
55 virtual systems. It only requires that the linker allocate objects | |
56 in the order encountered, a reasonable model for most Unix systems. | |
57 Similarly, note that the address of _start() should be the start | |
58 of text space. Fred Fish, UniSoft Systems Inc. */ | |
59 | |
60 int data_start = 0; | |
61 | |
62 #ifdef NEED_ERRNO | |
63 int errno; | |
64 #endif | |
65 | |
91702
b7a5a89054dc
* configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
Dan Nicolaescu <dann@ics.uci.edu>
parents:
87730
diff
changeset
|
66 #ifndef MSDOS |
25844 | 67 char **environ; |
68 #endif | |
69 | |
70 #ifndef static | |
71 /* On systems where the static storage class is usable, this function | |
72 should be declared as static. Otherwise, the static keyword has | |
73 been defined to be something else, and code for those systems must | |
74 take care of this declaration appropriately. */ | |
75 static start1 (); | |
76 #endif | |
77 | |
78 #ifdef CRT0_DUMMIES | |
79 | |
80 /* Define symbol "start": here; some systems want that symbol. */ | |
81 asm(" .text "); | |
82 asm(" .globl start "); | |
83 asm(" start: "); | |
84 | |
85 _start () | |
86 { | |
87 /* On vax, nothing is pushed here */ | |
88 start1 (); | |
89 } | |
90 | |
91 static | |
92 start1 (CRT0_DUMMIES argc, xargv) | |
93 int argc; | |
94 char *xargv; | |
95 { | |
96 register char **argv = &xargv; | |
97 environ = argv + argc + 1; | |
98 | |
99 if ((char *)environ == xargv) | |
100 environ--; | |
101 exit (main (argc, argv, environ)); | |
102 | |
103 /* Refer to `start1' so GCC will not think it is never called | |
104 and optimize it out. */ | |
105 (void) &start1; | |
106 } | |
107 #else /* not CRT0_DUMMIES */ | |
108 | |
96764
1307c33f5e9a
* ecrt0.c: Remove code depending on m68000, not used anymore.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96545
diff
changeset
|
109 /* This is a kludge. Now that the CRT0_DUMMIES mechanism above exists, |
25844 | 110 most of these machines could use the vax code above |
111 with some suitable definition of CRT0_DUMMIES. | |
112 Then the symbol m68k could be flushed. | |
113 But I don't want to risk breaking these machines | |
114 in a version 17 patch release, so that change is being put off. */ | |
115 | |
116 #ifdef m68k /* Can't do it all from C */ | |
117 asm (" global _start"); | |
118 asm (" text"); | |
119 asm ("_start:"); | |
120 asm (" comm splimit%,4"); | |
121 asm (" global exit"); | |
122 asm (" text"); | |
123 asm (" mov.l %d0,splimit%"); | |
124 asm (" jsr start1"); | |
125 asm (" mov.l %d0,(%sp)"); | |
126 asm (" jsr exit"); | |
127 asm (" mov.l &1,%d0"); /* d0 = 1 => exit */ | |
128 asm (" trap &0"); | |
129 | |
130 /* ignore takes care of skipping the a6 value pushed in start. */ | |
131 static | |
132 start1 (argc, xargv) | |
133 int argc; | |
134 char *xargv; | |
135 { | |
136 register char **argv = &xargv; | |
137 environ = argv + argc + 1; | |
138 | |
139 if ((char *)environ == xargv) | |
140 environ--; | |
141 exit (main (argc, argv, environ)); | |
142 } | |
143 | |
96764
1307c33f5e9a
* ecrt0.c: Remove code depending on m68000, not used anymore.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96545
diff
changeset
|
144 #endif /* m68k */ |
25844 | 145 |
146 #endif /* not CRT0_DUMMIES */ | |
147 | |
96545
4cb0e945175d
Use __sparc__ rather than sparc. (Bug#507.)
Glenn Morris <rgm@gnu.org>
parents:
96303
diff
changeset
|
148 #ifdef __sparc__ |
25844 | 149 asm (".global __start"); |
150 asm (".text"); | |
151 asm ("__start:"); | |
152 asm (" mov 0, %fp"); | |
153 asm (" ld [%sp + 64], %o0"); | |
154 asm (" add %sp, 68, %o1"); | |
155 asm (" sll %o0, 2, %o2"); | |
156 asm (" add %o2, 4, %o2"); | |
157 asm (" add %o1, %o2, %o2"); | |
158 asm (" sethi %hi(_environ), %o3"); | |
159 asm (" st %o2, [%o3+%lo(_environ)]"); | |
160 asm (" andn %sp, 7, %sp"); | |
161 asm (" call _main"); | |
162 asm (" sub %sp, 24, %sp"); | |
163 asm (" call __exit"); | |
164 asm (" nop"); | |
165 | |
96545
4cb0e945175d
Use __sparc__ rather than sparc. (Bug#507.)
Glenn Morris <rgm@gnu.org>
parents:
96303
diff
changeset
|
166 #endif /* __sparc__ */ |
25844 | 167 |
168 #if __FreeBSD__ == 2 | |
169 char *__progname; | |
170 #endif | |
52401 | 171 |
172 /* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74 | |
173 (do not change this comment) */ |